[Bug 2673] Bad colors in game Heroes Of Might and Magic IV

Wine Bugs wine-bugs at winehq.org
Fri Feb 4 16:44:12 CST 2005


http://bugs.winehq.org/show_bug.cgi?id=2673





------- Additional Comments From titan.costa at wanadoo.fr  2005-04-02 16:44 -------
The only significant change between wine-20041019 and wine-20041201 is as follows:

diff -u wine-20041019/dlls/ddraw/mesa.c wine-20041201/dlls/ddraw/mesa.c
--- wine-20041019/dlls/ddraw/mesa.c     2004-09-08 02:37:25.000000000 +0100
+++ wine-20041201/dlls/ddraw/mesa.c     2004-11-19 18:05:15.000000000 +0000
@@ -1205,7 +1205,7 @@
                for (x = 0; x < width; x++) {
                    DWORD color = *((DWORD *) src) & 0x00FFFFFF;
                    src += 3;
-                   *dst = *src++ << 8;
+                   *dst = color << 8;
                    if ((color < src_d->ddckCKSrcBlt.dwColorSpaceLowValue) ||
                        (color > src_d->ddckCKSrcBlt.dwColorSpaceHighValue))
                        *dst |= 0xFF;

You may try to revert it and see if something changes.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list