Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!oliveb!ames!fxgrp!grady
From: grady@fxgrp.UUCP (Steven Grady)
Newsgroups: comp.windows.x
Subject: Re: XCopyPlane bug?/Filling with a stipple
Message-ID: <820@fxgrp.UUCP>
Date: 28 Sep 88 22:48:33 GMT
References: <819@fxgrp.UUCP>
Reply-To: grady@fxgrp.UUCP (Steven Grady)
Organization: FX Development Group, Inc., Mountain View, CA
Lines: 22

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