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

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



Rich Burridge <Rich.Burridge@Sun.COM> writes:
> > 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.
> 

You can just use the GdkPixmap* with gdk_gc_new(), I think.

Havoc



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