Re: Runaway 2 Wine Patch

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

 



Try this patch:


Code:

--- dlls/ddraw/utils.c      2010-01-08 22:20:11.000000000 +0300
+++ dlls/ddraw/utils.c  2010-01-17 14:38:04.546374883 +0300
@@ -421,6 +421,14 @@
                 {
                     return WINED3DFMT_B2G3R3A8_UNORM;
                 }
+
+               if( (DDPixelFormat->u2.dwRBitMask == 0xF800) &&
+                   (DDPixelFormat->u3.dwGBitMask == 0x001F) &&
+                   (DDPixelFormat->u4.dwBBitMask == 0x0)    )
+               {
+                   return WINED3DFMT_B5G6R5_UNORM;
+               }
+
                 ERR("16 bit RGB Pixel format does not match\n");
                 return WINED3DFMT_UNKNOWN;




It work with wine 1.1.36 but should work also with 1.1.35.

The patch you first tried to use has been written for older versions of Wine. Seems like the naming scheme of constants like "WINED3DFMT_R5G6B5" has changed in newer ones...






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux