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) { |
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; |