[comp.windows.x] XSetPlaneMask + XDrawImageString?

arman@oahu.cs.ucla.edu (Arman Bostani) (04/10/90)

I am using the XSetPlaneMask library call and drawing a string using
the XDrawImageString. The string given to XDrawImageString is drawn
in all planes, regardless of the value of the mask given to
XSetPlaneMask. That is, even if plane_mask is set to 0, the string is
displayed to all planes. Calls to other library routines such as
XDrawString work as expected.

The O'Reilly manual states that XDrawImageString (like XDrawString)
DOES pay attention to the plane_mask component of the GC.

I'm running on a SparcStation 1 with X11R4 from MIT. When I tried
this on a Sony Running X11R3, however, XSetPlaneMask does seem to work
correctly with XDrawImageString.

What gives?

-arman

PS: I'm posting this for a friend.


-- Arman Bostani	// UCLA Computer Science Department
-- arman@CS.UCLA.EDU	// ...!{uunet,rutgers,ucbvax}!cs.ucla.edu!arman

keith@EXPO.LCS.MIT.EDU (Keith Packard) (04/11/90)

> I'm running on a SparcStation 1 with X11R4 from MIT.
> I am using the XSetPlaneMask library call and drawing a string using
> the XDrawImageString. The string given to XDrawImageString is drawn
> in all planes, regardless of the value of the mask given to
> XSetPlaneMask. That is, even if plane_mask is set to 0, the string is
> displayed to all planes.

Whoops!  The sample server neglects to check the planemask when drawing image
text to a color frame buffer.  When implementing the new code, I neglected to
check the protocol document to see if planemask was used for imagetext.  I've
forwarded your message to xbugs@expo.lcs.mit.edu.

Keith Packard
MIT X Consortium