art@megadata.mega.oz (Art Poirier) (07/18/89)
I'm hoping someone out there can help me. I'm trying to draw characters in a window using XDrawImageString16, expecting it to draw the background pixels as well as the foreground pixels, but I have been unsuccessful. The window's background is black, and foreground colors for characters vary. I have meticulously set the background pixel value to black in the GC, there is no tile or stiple being used, and just for ha-ha's, I set the function field of the GC to GCCopy (though I am equally unsuccessful using the default value). When I write a character to the window, the old character shows through, and that's not what I want at all. Now, what have I ignorantly forgotten to do, or am I expecting XDrawImageString16 to do something it was not intended to do? BTW, I'm using a Sun 3/60 with X11R3. No toolkits here, I'm grunting it out with just the X library. Thanks in advance, Art Poirier Megadata Pty Ltd (Could be worse... could be "Awesome-data") 2/37 Waterloo Rd. North Ryde Sydney NSW 2113 Australia Phone: (02) 805-0899 art@megadata.mega.oz.au ******************************************
rws@EXPO.LCS.MIT.EDU (07/20/89)
I set the function field of the GC to GCCopy (though I am equally unsuccessful using the default value). The function is ignored for image text. Now, what have I ignorantly forgotten to do, Not obvious, try supplying a simple test program.