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

Comparing ray/src/meta/x11plot.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.2 by greg, Mon Nov 17 02:21:53 2003 UTC

# Line 172 | Line 172 | adjustsize()
172                  dysize = dxsize;
173          }
174  
175 + void
176   endpage()               /* end of this graph */
177   {
178      XEvent  evnt;
# Line 204 | Line 205 | endpage()              /* end of this graph */
205  
206  
207  
208 + void
209   printstr(p)             /* output a string */
210  
211   register PRIMITIVE  *p;
# Line 243 | Line 245 | register PRIMITIVE  *p;
245  
246  
247  
248 + void
249   plotlseg(p)             /* plot a line segment */
250  
251   register PRIMITIVE  *p;
# Line 296 | Line 299 | register PRIMITIVE  *p;
299  
300   #ifdef  nyet
301  
302 + static void
303 + fill(xmin,ymin,xmax,ymax,pm)
304 + int xmin,ymin,xmax,ymax;
305 + Pixmap pm;
306 +        {
307 +        if (pm != 0 && curpat != pm)
308 +                {
309 +                XSetTile(dpy, gc, pm);
310 +                curpat = pm;
311 +                }
312 +        XFillRectangle(dpy, wind, gc, xmin, ymin, xmax-xmin+1, ymax-ymin+1);
313 +        }
314 +
315   fillrect(p)                     /* fill a rectangle */
316  
317   register PRIMITIVE  *p;
# Line 449 | Line 465 | register PRIMITIVE  *p;
465  
466   }
467  
452 fill(xmin,ymin,xmax,ymax,pm)
453 int xmin,ymin,xmax,ymax;
454 Pixmap pm;
455        {
456        if (pm != 0 && curpat != pm)
457                {
458                XSetTile(dpy, gc, pm);
459                curpat = pm;
460                }
461        XFillRectangle(dpy, wind, gc, xmin, ymin, xmax-xmin+1, ymax-ymin+1);
462        }
463
468   #else
469  
470 < filltri() {}
471 < fillpoly() {}
472 < fillrect() {}
469 <
470 > void filltri(PRIMITIVE *p) {}
471 > void fillpoly(PRIMITIVE *p) {}
472 > void fillrect(PRIMITIVE *p) {}
473  
474   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines