discuss-gnustep
[Top][All Lists]
Advanced

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

Re: cairo xlib surface (was: Re: Linux-x86-64 and cairo crash)


From: Eric Wasylishen
Subject: Re: cairo xlib surface (was: Re: Linux-x86-64 and cairo crash)
Date: Tue, 13 Sep 2011 21:35:56 -0600

> Three possible solutions I can think of are:
> 1.
> - fix NSImage so if NSWindow's with alpha can't be created, it won't try to 
> cache images with alpha channels in windows.
> - use XGCairoSurface regardless of the available visuals, so windows may or 
> may not support alpha channels depending on the X server.
> 
> 2. use XGCairoSurface if the server supports 32-bit visuals, otherwise use 
> XGCairoXImageSurface. This means we have to deal with two possible code paths 
> chosen at runtime, though.
> 
> 3. just leave the code as-is and always use XGCairoXImageSurface.
> 
> I think I prefer the first solution, but I'm not sure.

Replying to myself… just noticed apple's docs promise that an 
NSBackingStoreBuffered window will have an alpha channel, so my proposal 1) 
wouldn't work.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]