[D3D 80] Small fix for strange game behaviour

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

 



Changelog:
 Ignore the LPSURFACE bit if ALLOCONLOAD is set
 

-- 
		 Lionel Ulmer - http://www.bbrox.org/
--- /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 */

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

  Powered by Linux