forked from tTh/FloatImg
is _clear_rectangle working ?
This commit is contained in:
1 parent
0e79b3e8fa
commit
5845ab7962
5 files changed
+43
-9
No files matched your search
+2
-6
@@ -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