[D3D 80] Small fix for strange game behaviour

Lionel Ulmer lionel.ulmer at free.fr
Sat Jan 4 03:43:56 CST 2003


Changelog:
 Ignore the LPSURFACE bit if ALLOCONLOAD is set
 

-- 
		 Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
--- /home/ulmer/Wine/wine_base//dlls/ddraw/ddraw/main.c	2002-12-28 19:48:18.000000000 +0100
+++ /home/ulmer/Wine/wine_work//dlls/ddraw/ddraw/main.c	2003-01-04 08:20:37.000000000 +0100
@@ -555,6 +555,11 @@
     	pDDSD->dwFlags |= DDSD_CAPS;
     }
 
+    if (pDDSD->ddsCaps.dwCaps & DDSCAPS_ALLOCONLOAD) {
+        /* If the surface is of the 'alloconload' type, ignore the LPSURFACE field */
+        pDDSD->dwFlags &= ~DDSD_LPSURFACE;
+    }
+
     if (ppSurf == NULL) {
 	FIXME("You want to get back a surface? Don't give NULL ptrs!\n");
 	return E_POINTER; /* unchecked */


More information about the wine-patches mailing list