1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d9] Don't use m_monitor in GetDisplayModeEx

Should fix #1495.
This commit is contained in:
Philip Rebohle 2020-03-05 08:48:46 +01:00 committed by Joshie
parent 3a1243b05e
commit 245007daba

View File

@ -435,7 +435,7 @@ namespace dxvk {
DEVMODEW devMode = DEVMODEW();
devMode.dmSize = sizeof(devMode);
if (!GetMonitorDisplayMode(m_monitor, ENUM_CURRENT_SETTINGS, &devMode)) {
if (!GetMonitorDisplayMode(GetDefaultMonitor(), ENUM_CURRENT_SETTINGS, &devMode)) {
Logger::err("D3D9SwapChainEx::GetDisplayModeEx: Failed to enum display settings");
return D3DERR_INVALIDCALL;
}