Chris Robinson : wined3d: Use the macro when querying the current display settings.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 6 08:03:53 CDT 2007


Module: wine
Branch: master
Commit: ef561429eee4708ef160c3be75cb6f9b6db051cc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ef561429eee4708ef160c3be75cb6f9b6db051cc

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Sun Aug  5 19:42:09 2007 -0700

wined3d: Use the macro when querying the current display settings.

---

 dlls/wined3d/directx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 04679bb..b3182a5 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1230,7 +1230,7 @@ static HRESULT WINAPI IWineD3DImpl_GetAdapterDisplayMode(IWineD3D *iface, UINT A
         ZeroMemory(&DevModeW, sizeof(DevModeW));
         DevModeW.dmSize = sizeof(DevModeW);
 
-        EnumDisplaySettingsExW(NULL, (DWORD)-1, &DevModeW, 0);
+        EnumDisplaySettingsExW(NULL, ENUM_CURRENT_SETTINGS, &DevModeW, 0);
         pMode->Width        = DevModeW.dmPelsWidth;
         pMode->Height       = DevModeW.dmPelsHeight;
         bpp                 = DevModeW.dmBitsPerPel;




More information about the wine-cvs mailing list