diff --git a/src/video/wincommon/SDL_sysevents.c b/src/video/wincommon/SDL_sysevents.c index 1e06f2c46ed212bd744e58b888fbafe802c9d984..2e6cfa2a08853d7d2a513e0e11ded01b69b746a8 100644 --- a/src/video/wincommon/SDL_sysevents.c +++ b/src/video/wincommon/SDL_sysevents.c @@ -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; }