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

Comparing ray/src/common/tmapcolrs.c (file contents):
Revision 3.35 by greg, Tue Oct 13 00:08:46 2020 UTC vs.
Revision 3.36 by greg, Fri Jan 7 23:01:01 2022 UTC

# Line 122 | Line 122 | int    len
122                                  }
123                          }
124                  } else if (tms->flags & TM_F_BW) {
125 <                        cmon[RED] = cmon[GRN] = cmon[BLU] = li;
125 >                        for (j = 3; j--; )
126 >                                cs[3*i+j] = tms->cdiv[j]/(TM_BRES>>8);
127 >                        continue;
128                  } else {
129                          for (j = 3; j--; )
130                                  cmon[j] *= (cmon[j] > 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines