run it, bro !
This commit is contained in:
parent
1d6f0e8b4e
commit
4946f5fbb2
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user