Re: Why does this small program cause an X11 BadMatch?

One possibility is that the GdkGC was created for a different depth. 
You need a depth 1 GC.

I think that's exactly it. Umm, how to I do that? Do I have to (somehow)
create a window of depth 1 that I never map to the screen, and use that as
the first parameter in the gdk_gc_new*() call, or can I somehow get a
GdkWindow* handle from the GdkPixmap* of depth 1 that I've created, and
use that? The XView code did the equivalent of the latter.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]