mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[DDRAW] Fix two duplicate DDSD_WIDTH uses.
Thanks to Kudratov Olimjon who reported this. CORE-8545
This commit is contained in:
parent
b9d4e2dae6
commit
166c6e2498
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue