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

Comparing ray/src/util/rmatrix.c (file contents):
Revision 2.26 by greg, Mon Apr 9 21:30:07 2018 UTC vs.
Revision 2.27 by greg, Mon Apr 9 21:36:45 2018 UTC

# Line 338 | Line 338 | rmx_write_double(const RMATRIX *rm, FILE *fp)
338   static int
339   rmx_write_rgbe(const RMATRIX *rm, FILE *fp)
340   {
341 <        COLOR   *scan = (COLOR *)malloc(sizeof(COLOR)*rm->ncols);
341 >        COLR    *scan = (COLR *)malloc(sizeof(COLR)*rm->ncols);
342          int     i, j;
343  
344          if (scan == NULL)
345                  return(0);
346          for (i = 0; i < rm->nrows; i++) {
347              for (j = rm->ncols; j--; )
348 <                setcolor(scan[j],       rmx_lval(rm,i,j,0),
348 >                setcolr(scan[j],        rmx_lval(rm,i,j,0),
349                                          rmx_lval(rm,i,j,1),
350                                          rmx_lval(rm,i,j,2)      );
351 <            if (fwritescan(scan, rm->ncols, fp) < 0) {
351 >            if (fwritecolrs(scan, rm->ncols, fp) < 0) {
352                  free(scan);
353                  return(0);
354              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines