Henri Verbeet : wined3d: Use the device name stored in the adapter in wined3d_set_adapter_display_mode ().
Alexandre Julliard
julliard at winehq.org
Fri Jun 29 14:24:27 CDT 2012
Module: wine
Branch: master
Commit: d8434475809ff23ad823dad24a1c0a1a808b615b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8434475809ff23ad823dad24a1c0a1a808b615b
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Jun 29 07:37:54 2012 +0200
wined3d: Use the device name stored in the adapter in wined3d_set_adapter_display_mode().
---
dlls/wined3d/directx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 6212546..0da622a 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -3127,7 +3127,7 @@ HRESULT CDECL wined3d_set_adapter_display_mode(struct wined3d *wined3d,
return WINED3D_OK;
}
- ret = ChangeDisplaySettingsExW(NULL, &devmode, NULL, CDS_FULLSCREEN, NULL);
+ ret = ChangeDisplaySettingsExW(adapter->DeviceName, &devmode, NULL, CDS_FULLSCREEN, NULL);
if (ret != DISP_CHANGE_SUCCESSFUL)
{
if (devmode.dmDisplayFrequency)
@@ -3135,7 +3135,7 @@ HRESULT CDECL wined3d_set_adapter_display_mode(struct wined3d *wined3d,
WARN("ChangeDisplaySettingsExW failed, trying without the refresh rate.\n");
devmode.dmFields &= ~DM_DISPLAYFREQUENCY;
devmode.dmDisplayFrequency = 0;
- ret = ChangeDisplaySettingsExW(NULL, &devmode, NULL, CDS_FULLSCREEN, NULL);
+ ret = ChangeDisplaySettingsExW(adapter->DeviceName, &devmode, NULL, CDS_FULLSCREEN, NULL);
}
if (ret != DISP_CHANGE_SUCCESSFUL)
return WINED3DERR_NOTAVAILABLE;
More information about the wine-cvs
mailing list