Ticket #2996: 0004-Scale-the-GUI-on-Android.patch

File 0004-Scale-the-GUI-on-Android.patch, 771 bytes (added by BogDan, 9 years ago)
  • source/ps/GameSetup/Config.cpp

    From 161ba476f34117a2fcd4a8f45ad7bceea68b84f8 Mon Sep 17 00:00:00 2001
    From: BogDan Vatra <bogdan@kde.org>
    Date: Tue, 27 Jan 2015 14:28:43 +0200
    Subject: [PATCH 4/6] Scale the GUI on Android.
    
    ---
     source/ps/GameSetup/Config.cpp | 5 +++++
     1 file changed, 5 insertions(+)
    
    diff --git a/source/ps/GameSetup/Config.cpp b/source/ps/GameSetup/Config.cpp
    index 8743b4f..26f3a7f 100644
    a b float g_Gamma = 1.0f;  
    5757CStr g_RenderPath = "default";
    5858
    5959int g_xres, g_yres;
     60#ifdef OS_ANDROID
     61#warning FIXME HACK, Andriod has enough info to compute this variable
     62float g_GuiScale = 0.5f;
     63#else
    6064float g_GuiScale = 1.0f;
     65#endif
    6166bool g_VSync = false;
    6267
    6368bool g_Quickstart = false;