ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ra_ppm.c
(Generate patch)

Comparing ray/src/px/ra_ppm.c (file contents):
Revision 2.10 by schorsch, Thu Jun 5 19:29:34 2003 UTC vs.
Revision 2.11 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 269 | Line 269 | int  (*getscan)();
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) =
# Line 309 | Line 309 | int  binary, grey;
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) =

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines