displaying an image on a window

Philip Rushik prushik at gmail.com
Fri Oct 17 20:59:24 PDT 2014


On Oct 17, 2014 10:21 AM, "Adam Jackson" <ajax at nwnk.net> wrote:

> On Thu, 2014-10-16 at 03:56 -0400, Philip Rushik wrote:
>
> > Upon further investigation, I see that the server does actually
> > respond with an error message. Specifically a MATCH error, however, it
> > claims that the offending ID is the GC, not the window. I create the
> > GC with the root window as drawable and a foreground of 0x00aa00ff
> > (purple).
> >
> > How should a GC be set up for use in put image requests?
>
> I mean, you could always single-step through ProcPutImage to be sure,
> but.  I suspect that what's actually going wrong for you is that the
> depth of the _image_ doesn't match that of the gc/drawable.
>
> - ajax
>
>
Yes, you were correct, I had set the depth to one that didn't match the GC.
Totally my fault. I can now display images correctly. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20141017/dbf1f998/attachment.html>


More information about the xorg-devel mailing list