269 |
|
for (y = ymax-1; y >= 0; y--) { |
270 |
|
if ((*getscan)(scanout, xmax, stdin) < 0) |
271 |
|
quiterr("error reading Pixmap"); |
272 |
< |
for (x = gamcor>1.01|gamcor<0.99?xmax:0; x--; ) { |
272 |
> |
for (x = (gamcor>1.01)|(gamcor<0.99)?xmax:0; x--; ) { |
273 |
|
colval(scanout[x],RED) = |
274 |
|
pow(colval(scanout[x],RED), gamcor); |
275 |
|
colval(scanout[x],GRN) = |
309 |
|
for (x = grey?xmax:0; x--; ) |
310 |
|
colval(scanin[x],GRN) = bright(scanin[x]); |
311 |
|
d = 1./gamcor; |
312 |
< |
for (x = d>1.01|d<0.99?xmax:0; x--; ) { |
312 |
> |
for (x = (d>1.01)|(d<0.99)?xmax:0; x--; ) { |
313 |
|
colval(scanin[x],GRN) = pow(colval(scanin[x],GRN), d); |
314 |
|
if (!grey) { |
315 |
|
colval(scanin[x],RED) = |