[comp.windows.x] drawing with xor

sayuri@SUMEX-AIM.STANFORD.EDU (Sayuri Nishimura) (12/16/89)

I have a question about drawing operations with xor function.
I found out that in order to draw a line, or a string, or
a hollow rectangle with xor function, I have to set the 
foreground slot of the gc to 1 and the background slot of the 
gc to 0 no matter what value the background slot of the window
has. Is this the right behavior? If so, how can I draw a colored
line, a colored string etc. with xor function?
Drawing a rectangle filled with tile works regardless of the
foreground/background slots of the gc.

I am using clue/clx and the x server on a sun3. But I found this
behavior on the x server of NDC, too.
Thanks. sayuri

sayuri@SUMEX-AIM.STANFORD.EDU (Sayuri Nishimura) (12/16/89)

I figured out how I was misunderstanding the xor problem.
Thus, please do not worry about my original question. Thanks.
sayuri