Problem with Pixmap Depth for Render extension
Dave
topblue at talktalk.net
Sat Sep 27 01:39:33 PDT 2008
Problem: Pixmap Depth from XGetGeometry doesn't agree with
XRenderCreatePicture.
If I create a Pixmap (XCreatePixmap) with a depth of 24 bits, the request to
get the Geometry (XGetGeometry) of the created pixmap returns it as 32. Ok,
I can accept that. But if I then use the Pixmap in a call to
XRenderCreatePicture with a 32-bit ARGB Picture format, the call fails. It
seems that XRenderCreatePicture 'knows' that the Pixmap is really 24 bits,
as requested in the Pixmap creation, rather than 32 bits, as returned in the
XGetGeometry call.
I am simply trying to call XRenderCreatePicture with the correct
PictureFormat type for a Pixmap whose depth I do not know. Using
XGetGeometry to query that depth seemed like the obvious think to do.
Any ideas what is going on here?
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20080927/649d8af8/attachment.html>
More information about the xorg
mailing list