montiel@optis31.UUCP (Tony Montiel) (11/18/89)
I typed in a code segment from O'Reilly & Associates, Inc.: "Xlib Programming Manual by Adrian Nye, Vol. One" found on page 270 (9.2.1.2. Using Pointer Motion Hints). For those of you without the book, this implements a simple line drawing function with the GC function set to GXxor. The program works great on my Sun 3/60 using the MIT server (fixes + Purdues), but when I take it over to my PS/2 running AIX and IBM's X server, XDrawLine() doesn't work. When the program gets an Expose event, it changes the GC function to GXcopy and does an XDrawLines() and this works! So I tried using: GXcopy, GXset/GXclear and they both worked with XDrawLine(). It was ugly, but at least I got some lines to draw. When I switch back to GXxor...nothing. Is this a known bug with the IBM X server? I can't imagine that I'm the first person to try this. -- Tony Montiel Optigraphics Corporation (619) 292-6060 9339 Carroll Park Drive uunet!seismo!esosun!opti!montiel San Diego, CA 92121