Author: mbosma
Date: Tue May 22 23:30:25 2007
New Revision: 26869
URL:
http://svn.reactos.org/svn/reactos?rev=26869&view=rev
Log:
Fix two oversights in GetDisplayMode.
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c Tue May 22 23:30:25 2007
@@ -182,14 +182,14 @@
if (pDDSD == NULL)
return DDERR_INVALIDPARAMS;
- if (pDDSD->dwSize != sizeof(LPDDSURFACEDESC2))
+ if (pDDSD->dwSize != sizeof(DDSURFACEDESC2))
return DDERR_INVALIDPARAMS;
// FIXME: More stucture members might need to be filled
pDDSD->dwFlags |= DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT | DDSD_PITCH |
DDSD_REFRESHRATE;
- pDDSD->dwHeight = This->lpLcl->lpGbl->vmiData.dwDisplayWidth;
- pDDSD->dwWidth = This->lpLcl->lpGbl->vmiData.dwDisplayHeight;
+ pDDSD->dwHeight = This->lpLcl->lpGbl->vmiData.dwDisplayHeight;
+ pDDSD->dwWidth = This->lpLcl->lpGbl->vmiData.dwDisplayWidth;
pDDSD->ddpfPixelFormat = This->lpLcl->lpGbl->vmiData.ddpfDisplay;
pDDSD->dwRefreshRate = This->lpLcl->lpGbl->dwMonitorFrequency;
pDDSD->lPitch = This->lpLcl->lpGbl->vmiData.lDisplayPitch;