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

This commit is contained in:
Chris Robinson 2007-08-05 19:42:09 -07:00 committed by Alexandre Julliard
parent c6e6eae08c
commit ef561429ee
1 changed files with 1 additions and 1 deletions

View File

@ -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;