Commit 149d5d36 authored by CeRiAl's avatar CeRiAl

Applied patch from ScummVM bugtracker item #2889140

Patch was supplied by user Burkilos (http://sourceforge.net/users/burkilos/)
parent e12ca319
...@@ -380,6 +380,12 @@ static LONG getDisplayMode(void) ...@@ -380,6 +380,12 @@ static LONG getDisplayMode(void)
devMode.dmFields = DM_DISPLAYORIENTATION; devMode.dmFields = DM_DISPLAYORIENTATION;
r = dynChangeDisplaySettingsEx(NULL, &devMode, NULL, CDS_TEST, NULL); r = dynChangeDisplaySettingsEx(NULL, &devMode, NULL, CDS_TEST, NULL);
if (devMode.dmDisplayOrientation != 0)
{
devMode.dmDisplayOrientation = 0;
dynChangeDisplaySettingsEx(NULL, &devMode, NULL, CDS_RESET, NULL);
debugLog("SDL: Forced Portrait orientation");
}
debugLog("SDL: orientation %d", devMode.dmDisplayOrientation); debugLog("SDL: orientation %d", devMode.dmDisplayOrientation);
return devMode.dmDisplayOrientation; return devMode.dmDisplayOrientation;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment