From 8166e7a094ff3d2bd8245b1ce529ad8d8967ac31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 13 Dec 2013 12:49:38 +0100 Subject: [PATCH] Let apps specify that they want portrait on startup again --- base/PCMain.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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;