Update uistate hackery. Need to get rid of this from PCMain.cpp...
This commit is contained in:
parent
9a6d1ce7e7
commit
c3fffa291b
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue