From 5eb1f00b9f244b8b41e176cf490e86f2af8f8ce1 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Mon, 13 May 2024 05:14:07 +0200 Subject: [PATCH] #309 Add possible fix for Nancy Draw: Last Train to Blue Moon Canyon SetSurfaceDesc() error --- src/ddsurface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddsurface.c b/src/ddsurface.c index d1a1b24..e6770a4 100644 --- a/src/ddsurface.c +++ b/src/ddsurface.c @@ -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;