cosmetic
This commit is contained in:
@@ -48,11 +48,12 @@ return -1;
|
||||
/* nouveau du premier dimanche de 2020 'nextgen' */
|
||||
static int pixel_trinitron(FloatImg *pimg, int pos[4], float *fvals)
|
||||
{
|
||||
int x, y, off;
|
||||
int x, y, pline, off;
|
||||
|
||||
for (y=pos[1]; y<pos[1]+pos[3]; y++) {
|
||||
for (x=pos[0]+1; x<pos[0]+pos[2]-1; x++) {
|
||||
off = (y*pimg->width) + x;
|
||||
pline = y*pimg->width;
|
||||
for (x=pos[0]+2; x<pos[0]+pos[2]-2; x++) {
|
||||
off = pline + x;
|
||||
pimg->R[off] = fvals[0];
|
||||
pimg->G[off] = fvals[1];
|
||||
pimg->B[off] = fvals[2];
|
||||
|
||||
Reference in New Issue
Block a user