Ignore the LPSURFACE bit if ALLOCONLOAD is set.

oldstable
Lionel Ulmer 2003-01-05 20:28:17 +00:00 committed by Alexandre Julliard
parent 7572148823
commit 2d7c07c7c3
1 changed files with 5 additions and 0 deletions

View File

@ -555,6 +555,11 @@ Main_DirectDraw_CreateSurface(LPDIRECTDRAW7 iface, LPDDSURFACEDESC2 pDDSD,
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 */