mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
#309 Add possible fix for Nancy Draw: Last Train to Blue Moon Canyon SetSurfaceDesc() error
This commit is contained in:
parent
8262716194
commit
5eb1f00b9f
@ -1227,7 +1227,7 @@ HRESULT dds_SetSurfaceDesc(IDirectDrawSurfaceImpl* This, LPDDSURFACEDESC2 lpDDSD
|
||||
|
||||
DWORD req_flags = DDSD_LPSURFACE | DDSD_PITCH | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT;
|
||||
|
||||
if ((lpDDSD->dwFlags & req_flags) != req_flags)
|
||||
if (((lpDDSD->dwFlags & req_flags) != req_flags) && (lpDDSD->dwFlags & DDSD_ALL) == 0)
|
||||
return DDERR_UNSUPPORTED;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user