is _clear_rectangle working ?

This commit is contained in:
tth
2021-10-19 03:56:56 +02:00
parent 0e79b3e8fa
commit 5845ab7962
5 changed files with 43 additions and 9 deletions

View File

@@ -54,14 +54,10 @@ static int pixel_trinitron(FloatImg *pimg, int pos[4], float *fvals)
{
int x, y, pline, off;
fimg_clear_rectangle(pimg, pos);
for (y=pos[1]; y<pos[1]+pos[3]; y++) {
pline = y*pimg->width;
#if 0
for (x=0; x<(pos[0]+pos[2]); x++) {
off = pline + x;
pimg->R[off]=pimg->G[off]=pimg->B[off]=0.0;
}
#endif
for (x=pos[0]+2; x<(pos[0]+pos[2]-2); x++) {
off = pline + x;
/* wtf i'm doing here ? */