diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 7fe4550b20..f060c8ec9b 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -20,6 +20,9 @@ #include "SDL_audio.h" #include "SDL_video.h" #endif + +#include + #include "base/display.h" #include "base/logging.h" #include "base/timeutil.h" @@ -374,6 +377,11 @@ int main(int argc, char *argv[]) { g_Config.bFullScreen = false; #endif } + + if (!landscape) { + std::swap(pixel_xres, pixel_yres); + } + dp_xres = (float)pixel_xres; dp_yres = (float)pixel_yres;