Ignore the LPSURFACE bit if ALLOCONLOAD is set.

This commit is contained in:
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; 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) { if (ppSurf == NULL) {
FIXME("You want to get back a surface? Don't give NULL ptrs!\n"); FIXME("You want to get back a surface? Don't give NULL ptrs!\n");
return E_POINTER; /* unchecked */ return E_POINTER; /* unchecked */