Skip to content

Commit

Permalink
#309 Add possible fix for Nancy Draw: Last Train to Blue Moon Canyon …
Browse files Browse the repository at this point in the history
…SetSurfaceDesc() error
  • Loading branch information
FunkyFr3sh committed May 13, 2024
1 parent 8262716 commit 5eb1f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ddsurface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down

0 comments on commit 5eb1f00

Please sign in to comment.