From 6c406823c062ea5a88b7826545f590f93da59634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 3 Apr 2014 17:31:59 +0200 Subject: [PATCH] Enable the better looking vertical mode for the homescreen in portrait mode --- UI/MainScreen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index f818bc9f3..4ef0a55a7 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -19,6 +19,7 @@ #include #include "base/colorutil.h" +#include "base/display.h" #include "base/timeutil.h" #include "file/path.h" #include "gfx_es2/draw_buffer.h" @@ -689,7 +690,7 @@ void MainScreen::CreateViews() { using namespace UI; // Vertical mode is not finished. - bool vertical = false; // dp_yres > dp_xres; + bool vertical = dp_yres > dp_xres; I18NCategory *m = GetI18NCategory("MainMenu");