is _clear_rectangle working ?
This commit is contained in:
@@ -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 ? */
|
||||
|
||||
Reference in New Issue
Block a user