run it, bro !

This commit is contained in:
Tonton Th 2021-01-03 15:43:26 +01:00
parent 1d6f0e8b4e
commit 4946f5fbb2
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ for (idx=0; idx < pimg->height; idx++) {
// fprintf(stderr, "%6d %6d\n", idx, sline);
pimg->R[pos] = pimg->G[pos];
pimg->B[pos] = pimg->G[pos];
pimg->G[pos] *= 1.414;
}
return 0;

View File

@ -30,6 +30,8 @@ for (y=pos[1]; y<pos[1]+pos[3]; y++) {
for (x=pos[0]; x<pos[0]+pos[2]; x++) {
off = (y*pimg->width) + x;
pimg->R[off] = fvals[0];
pimg->G[off] = fvals[1];
pimg->B[off] = fvals[2];
}
}
return 0;