Hello all, I'm having trouble with drawing a line on different colored background. For example, when my rubber-banding line is in a black rectangle, the color of the line is shown as green. When my line is in a white rectangle, the color of the line is shown as purple. I've been looking at Xlib, gtk, gtkmm examples on colormap, overlay, etc. but I can't find a solution. I attached an example program to illustrate the problem. What I want is a solid color line, such as green. Can someone offer any suggestion? Thanks so much, Andy
Attachment:
overlay.cc
Description: Binary data