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

Comparing ray/src/util/xglaresrc.c (file contents):
Revision 1.1 by greg, Tue Mar 19 14:12:11 1991 UTC vs.
Revision 1.4 by greg, Wed Apr 17 12:14:52 1991 UTC

# Line 79 | Line 79 | char   *name;
79                                  progname);
80                  exit(1);
81          }
82 <        pickcursor = XCreateFontCursor(theDisplay, XC_target);
82 >        pickcursor = XCreateFontCursor(theDisplay, XC_hand2);
83                                          /* find our window */
84          while (XGrabPointer(theDisplay, rwind, True, ButtonPressMask,
85                          GrabModeAsync, GrabModeAsync, None, pickcursor,
86                          CurrentTime) != GrabSuccess)
87                  sleep(2);
88 <        printf("%s: pick point in \"%s\" display window\n", progname, name);
88 >        printf("%s: click mouse in \"%s\" display window\n", progname, name);
89          XNextEvent(theDisplay, &xev);
90          XUngrabPointer(theDisplay, CurrentTime);
91          if (((XButtonEvent *)&xev)->subwindow == None) {
# Line 165 | Line 165 | double dom;
165                  if (pz <= 0.0)
166                          goto fail;
167                  pt[i].x = px*xres;
168 <                pt[i].y = py*yres;
168 >                pt[i].y = yres-1 - (int)(py*yres);
169          }
170          XDrawLines(theDisplay, gwind, vecGC, pt, NSEG+1, CoordModeOrigin);
171          return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines