[Wine] Re: Runaway 2 Wine Patch
rabathnox
wineforum-user at winehq.org
Sun Jan 17 06:13:20 CST 2010
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...
More information about the wine-users
mailing list