#309 Add possible fix for Nancy Draw: Last Train to Blue Moon Canyon SetSurfaceDesc() error
This commit is contained in:
parent
8262716194
commit
5eb1f00b9f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue