From c3fffa291bc92e290216305d9f2bd66c89902e22 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 22 Jun 2014 10:34:22 +0200 Subject: [PATCH] Update uistate hackery. Need to get rid of this from PCMain.cpp... --- base/PCMain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/PCMain.cpp b/base/PCMain.cpp index b3e7386a2f..48ca4fc45b 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -45,7 +45,7 @@ SDLJoystick *joystick = NULL; #include "Core/Core.h" #include "Core/Config.h" -GlobalUIState lastUIState = UISTATE_MENU; +GlobalUIState GetUIState(); #endif static SDL_Surface* g_Screen = NULL; @@ -783,8 +783,8 @@ int main(int argc, char *argv[]) { break; NativeRender(); #if defined(PPSSPP) && !defined(MOBILE_DEVICE) - if (lastUIState != globalUIState) { - lastUIState = globalUIState; + if (lastUIState != GetUIState()) { + lastUIState = GetUIState(); if (lastUIState == UISTATE_INGAME && g_Config.bFullScreen && !g_Config.bShowTouchControls) SDL_ShowCursor(SDL_DISABLE); if (lastUIState != UISTATE_INGAME && g_Config.bFullScreen)