[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: winex11.drv: provide a workaround for apps that need 32-bit
From:       Chris Robinson <chris.kcat () gmail ! com>
Date:       2007-04-30 20:49:59
Message-ID: 200704301349.59578.chris.kcat () gmail ! com
[Download RAW message or body]

On Monday 30 April 2007 01:25:02 pm Louis. Lenders wrote:
> AFAICS there's no  real fix for this now,
> as X11 visual reports back screendepth 24. Even by setting the registrykey
> "ScreenDepth" to 32, the applications fail.

I actually had a semi-working fix for this. What I did was create a small, 
temporary pixmap at initialization using the same visual as the screen, then 
getting the pixmap's bpp value, which would correctly give 32bpp that 
winex11.drv could then use to report for BITSPIXEL. It would also still work 
for 16 and true 24bpp modes.

However, the problem is that there's places that assume BITSPIXEL is the same 
as the color depth (which for the case of 32bpp, is not true).


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic