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.2 by greg, Sat Jun 6 07:40:23 1992 UTC vs.
Revision 2.3 by greg, Tue Jun 16 13:24:23 1992 UTC

# Line 70 | Line 70 | typedef struct {
70          TLINE  tl;                      /* line list */
71   }  TEXT;
72  
73 + extern char  *libpath;
74 +
75   extern char  *fgetword();
76  
77   TEXT  *gettext();
# Line 265 | Line 267 | OBJREC  *m;
267  
268   inglyph(x, y, gl)               /* (x,y) within font glyph gl? */
269   double  x, y;
270 < GLYPH  *gl;
270 > register GLYPH  *gl;
271   {
272          int  n, ncross;
273          int  xlb, ylb;
# Line 277 | Line 279 | GLYPH  *gl;
279          y *= 256.0;
280          xlb = x + 0.5;
281          ylb = y + 0.5;
282 +        if (gl->left > xlb || gl->right <= xlb ||
283 +                        gl->bottom > ylb || gl->top <= ylb)
284 +                return(0);      /* outside extent */
285          n = gl->nverts;                 /* get # of vertices */
286          p0 = gvlist(gl) + 2*(n-1);      /* connect last to first */
287          p1 = gvlist(gl);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines