mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 19:18:03 +02:00
fix wrong color depths for wine
This commit is contained in:
parent
2ef4fc498b
commit
e61d4c41c4
1 changed files with 6 additions and 6 deletions
|
|
@ -239,14 +239,14 @@ winQueryRGBBitsAndMasks (ScreenPtr pScreen)
|
|||
)))));
|
||||
#endif
|
||||
|
||||
/* Wine returns this */
|
||||
/* Handle BI_RGB case, which is returned by Wine */
|
||||
if (pbmih->biCompression == BI_RGB)
|
||||
{
|
||||
dwRedBits = 15;
|
||||
dwGreenBits = 10;
|
||||
dwBlueBits = 5;
|
||||
|
||||
pScreenPriv->dwBitsPerRGB = 15;
|
||||
dwRedBits = 5;
|
||||
dwGreenBits = 5;
|
||||
dwBlueBits = 5;
|
||||
|
||||
pScreenPriv->dwBitsPerRGB = 5;
|
||||
|
||||
/* Set screen privates masks */
|
||||
pScreenPriv->dwRedMask = 0x7c00;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue