Some people might find the following patch helpful for Owen's nice example 
program.  (He's apparantly using C++ compilers these days).

I would like an idea if the Xr API was in any way a hinderence in this 
little activity.

-keith

*** xr-knockout-example.c.owen  2002-11-30 23:46:54.000000000 -0800
--- xr-knockout-example.c       2002-11-30 23:46:27.000000000 -0800
***************
*** 78,86 ****
               int x,     int y,
               int width, int height)
  {
-     XrSave (r);
      int i, j;
  
  #define CHECK_SIZE 32
  
      XrSetRGBColor (r, 0.4, 0.4, 0.4);
--- 78,86 ----
               int x,     int y,
               int width, int height)
  {
      int i, j;
  
+     XrSave (r);
  #define CHECK_SIZE 32
  
      XrSetRGBColor (r, 0.4, 0.4, 0.4);
***************
*** 219,225 ****
      /* Now copy from our offscreen pixmap to the window
       */
      gc = XCreateGC (dpy, p, 0, NULL);
!     XCopyArea (dpy, p, w, gc, 0, 0, width, height, clip.x, clip.y);
      XFreeGC (dpy, gc);
      
      XFreePixmap (dpy, p);
--- 219,225 ----
      /* Now copy from our offscreen pixmap to the window
       */
      gc = XCreateGC (dpy, p, 0, NULL);
!     XCopyArea (dpy, p, w, gc, 0, 0, clip.width, clip.height, clip.x, clip.y);
      XFreeGC (dpy, gc);
      
      XFreePixmap (dpy, p);


_______________________________________________
Render mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/render

Reply via email to