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 1.4 by greg, Sat Dec 15 15:03:40 1990 UTC vs.
Revision 1.5 by greg, Thu Jan 3 11:54:54 1991 UTC

# Line 278 | Line 278 | GLYPH  *gl;
278  
279          if (x < 0.0 || y < 0.0)
280                  return(0);
281 <        xlb = x *= 255.0;               /* get glyph coordinates */
282 <        ylb = y *= 255.0;
281 >        x *= 256.0;                     /* get glyph coordinates */
282 >        y *= 256.0;
283 >        xlb = x + 0.5;
284 >        ylb = y + 0.5;
285          n = *gl++;                      /* get # of vertices */
286          p0 = gl + 2*(n-1);              /* connect last to first */
287          p1 = gl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines