mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wined3d: Use the device name stored in the adapter in wined3d_set_adapter_display_mode().
This commit is contained in:
parent
56c518af3e
commit
d843447580
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user