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

Comparing ray/src/rt/text.c (file contents):
Revision 2.28 by greg, Fri Nov 19 22:51:31 2021 UTC vs.
Revision 2.29 by greg, Wed Nov 15 18:02:53 2023 UTC

# Line 113 | Line 113 | do_text(
113                          return(1);
114                  }
115          } else if (m->otype == PAT_BTEXT) {
116 <                if (foreground)
117 <                        scalecolor(r->pcol, m->oargs.farg[9]);
118 <                else
119 <                        scalecolor(r->pcol, m->oargs.farg[10]);
116 >                if (foreground) {
117 >                        scalescolor(r->pcol, m->oargs.farg[9]);
118 >                } else {
119 >                        scalescolor(r->pcol, m->oargs.farg[10]);
120 >                }
121          } else { /* PAT_CTEXT */
122 <                COLOR  cval;
122 >                SCOLOR  scval;
123                  if (foreground)
124 <                        setcolor(cval, m->oargs.farg[9],
124 >                        setscolor(scval, m->oargs.farg[9],
125                                          m->oargs.farg[10],
126                                          m->oargs.farg[11]);
127                  else
128 <                        setcolor(cval, m->oargs.farg[12],
128 >                        setscolor(scval, m->oargs.farg[12],
129                                          m->oargs.farg[13],
130                                          m->oargs.farg[14]);
131 <                multcolor(r->pcol, cval);
131 >                smultscolor(r->pcol, scval);
132          }
133          return(0);
134   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines