Hello,
I must to patch wine if i want to play at this game because i have an error
message who told me that "error with directdraw". And without patch,
the game doesn't run with wine 1.1.35
But, the patch in Wine AppDB is for wine 1.1.21. I tried to patch Wine 1.1.35
with this patch but i had an error message during the "make depend &
make"
The wine 1.1.21 patch is :
Code:
*** dlls/ddraw/utils.c 2009-05-08 19:33:02.000000000 +0200
--- dlls/ddraw/utils.c 2009-05-18 09:01:34.000000000 +0200
***************
*** 411,416 ****
--- 411,424 ----
{
return WINED3DFMT_A8R3G3B2;
}
+
+ if( (DDPixelFormat->u2.dwRBitMask == 0xF800) &&
+ (DDPixelFormat->u3.dwGBitMask == 0x001F) &&
+ (DDPixelFormat->u4.dwBBitMask == 0x0) )
+ {
+ return WINED3DFMT_R5G6B5;
+ }
+
ERR("16 bit RGB Pixel format does not match\n");
return WINED3DFMT_UNKNOWN;
The error message is for return WINED3DFMT_R5G6B5; in utils.c because
WINED3DFMT_R5G6B5 doesn't exist.
How to change it to can patch the latest version of Wine?
Sorry for my english, i'm french. [Embarassed]
Thanks
I add that the error message when i launch the game is an error with Directx. Directx is installed but the game think that it's not installed.
Nobody to help me to change this patch?
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...