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

Comparing ray/src/px/ra_bmp.c (file contents):
Revision 2.13 by greg, Fri Jul 19 17:37:56 2019 UTC vs.
Revision 2.14 by greg, Sun Apr 5 19:10:51 2020 UTC

# Line 249 | Line 249 | rad2bmp(FILE *rfp, BMPWriter *bwr, int inv, RGBPRIMP m
249          usexfm = (monpri != NULL ? rgbinp != monpri :
250                          rgbinp != TM_XYZPRIM && rgbinp != stdprims);
251          if (usexfm) {
252 <                double  expcomp = pow(2.0, (double)bradj);
252 >                RGBPRIMP        destpri = monpri != NULL ? monpri : stdprims;
253 >                double          expcomp = pow(2.0, (double)bradj);
254                  if (rgbinp == TM_XYZPRIM)
255 <                        compxyz2rgbWBmat(xfm, monpri);
255 >                        compxyz2rgbWBmat(xfm, destpri);
256                  else
257 <                        comprgb2rgbWBmat(xfm, rgbinp, monpri);
257 >                        comprgb2rgbWBmat(xfm, rgbinp, destpri);
258                  for (y = 0; y < 3; y++)
259                          for (x = 0; x < 3; x++)
260                                  xfm[y][x] *= expcomp;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines