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.3 by greg, Wed Mar 20 12:59:27 1991 UTC

# Line 85 | Line 85 | char   *name;
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