Update uistate hackery. Need to get rid of this from PCMain.cpp...

This commit is contained in:
Henrik Rydgard 2014-06-22 10:34:22 +02:00
parent 9a6d1ce7e7
commit c3fffa291b

View file

@ -45,7 +45,7 @@ SDLJoystick *joystick = NULL;
#include "Core/Core.h" #include "Core/Core.h"
#include "Core/Config.h" #include "Core/Config.h"
GlobalUIState lastUIState = UISTATE_MENU; GlobalUIState GetUIState();
#endif #endif
static SDL_Surface* g_Screen = NULL; static SDL_Surface* g_Screen = NULL;
@ -783,8 +783,8 @@ int main(int argc, char *argv[]) {
break; break;
NativeRender(); NativeRender();
#if defined(PPSSPP) && !defined(MOBILE_DEVICE) #if defined(PPSSPP) && !defined(MOBILE_DEVICE)
if (lastUIState != globalUIState) { if (lastUIState != GetUIState()) {
lastUIState = globalUIState; lastUIState = GetUIState();
if (lastUIState == UISTATE_INGAME && g_Config.bFullScreen && !g_Config.bShowTouchControls) if (lastUIState == UISTATE_INGAME && g_Config.bFullScreen && !g_Config.bShowTouchControls)
SDL_ShowCursor(SDL_DISABLE); SDL_ShowCursor(SDL_DISABLE);
if (lastUIState != UISTATE_INGAME && g_Config.bFullScreen) if (lastUIState != UISTATE_INGAME && g_Config.bFullScreen)