winex11: fix palette conversion bug

Roderick Colenbrander thunderbird2k at gmail.com
Mon Feb 15 17:38:42 CST 2010


Hi,

This patch fixes a palette conversion bug in the game Nemesis (and
likely in Riven as well). In this case the game uploads 8-bit data to
a 16-bit physDev. When X runs at 24-bit the default 24-bit color
shifts result in a 24-bit colormap while for conversion a 16-bit
colormap is needed. In order to get a 16-bit colormap I'm passing the
color shifts to X11DRV_Palette_LookupPixel.

Regards,
Roderick Colenbrander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-This-patch-fixes-a-color-rendering-bug-in-the-game-N.patch
Type: text/x-diff
Size: 4134 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100216/328aa11a/attachment.patch>


More information about the wine-patches mailing list