https://git.reactos.org/?p=reactos.git;a=commitdiff;h=166c6e249818990e0546f…
commit 166c6e249818990e0546f7bdfde1c6f02f2a68c3
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Oct 11 01:46:44 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Dec 8 17:10:31 2018 +0100
[DDRAW] Fix two duplicate DDSD_WIDTH uses.
Thanks to Kudratov Olimjon who reported this.
CORE-8545
---
dll/directx/ddraw/Ddraw/ddraw_displaymode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
b/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
index 5c6385b85f..5b5c910dc7 100644
--- a/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
+++ b/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
@@ -51,7 +51,7 @@ Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD
dwFlags,
iMode++;
SurfaceDesc.dwSize = sizeof (DDSURFACEDESC);
- SurfaceDesc.dwFlags = DDSD_HEIGHT | DDSD_WIDTH | DDSD_REFRESHRATE |
DDSD_WIDTH | DDSD_PIXELFORMAT;
+ SurfaceDesc.dwFlags = DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT |
DDSD_PITCH | DDSD_REFRESHRATE;
SurfaceDesc.dwHeight = DevMode.dmPelsHeight;
SurfaceDesc.dwWidth = DevMode.dmPelsWidth;
SurfaceDesc.lPitch = DevMode.dmPelsWidth * DevMode.dmBitsPerPel / 8;
@@ -149,7 +149,7 @@ Main_DirectDraw_EnumDisplayModes4(LPDDRAWI_DIRECTDRAW_INT This, DWORD
dwFlags,
iMode++;
SurfaceDesc.dwSize = sizeof (DDSURFACEDESC2);
- SurfaceDesc.dwFlags = DDSD_HEIGHT | DDSD_WIDTH | DDSD_REFRESHRATE |
DDSD_WIDTH | DDSD_PIXELFORMAT;
+ SurfaceDesc.dwFlags = DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT |
DDSD_PITCH | DDSD_REFRESHRATE;
SurfaceDesc.dwHeight = DevMode.dmPelsHeight;
SurfaceDesc.dwWidth = DevMode.dmPelsWidth;
SurfaceDesc.lPitch = DevMode.dmPelsWidth * DevMode.dmBitsPerPel / 8;