grady@fxgrp.UUCP (Steven Grady) (09/29/88)
In article <819@fxgrp.UUCP> grady@fxgrp (me) writes: >I've come across a bug... Oh, one other thing. I came across this bug after trying to do something slightly different -- namely, drawing only the bits in the bitmap without changing the other bits (ie 0's in the bitmap would be transparent, not the background color). I believe the correct way to do this is to use XFillRectangle() with the bitmap as a stipple pattern, and FillStippled as the FillStyle. I tried this, but I got the same effect (distorted bitmap in an arbitrary color) as with the first window of my last example. The relevant code is: XSetStipple(dpy, gc, bm); XSetFillStyle(dpy, gc, FillStippled); XFillRectangle(dpy, w, gc, 0, 0, bar_width, bar_height); Since I got the same result, I assume this is the same bug (whether mine or the server's). Am I right? Steven ...!ucbvax!grady grady@postgres.berkeley.edu