Commit dc953acb 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 b0e23f73
......@@ -238,6 +238,12 @@ static LONG getDisplayMode(void)
devMode.dmFields = DM_DISPLAYORIENTATION;
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);
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