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