Permalink
Browse files

Merge pull request #9985 from hrydgard/sdl-cursor-fix

Remove unnecessary ifdef that broke cursor hiding on SDL.
  • Loading branch information...
hrydgard committed Sep 28, 2017
2 parents ce21642 + 4de7523 commit 3d5e04767a43dae76d12e5fd593e616924bf655d
Showing with 1 addition and 3 deletions.
  1. +1 −3 ext/native/base/PCMain.cpp
@@ -711,7 +711,6 @@ int main(int argc, char *argv[]) {
dp_yres = (float)pixel_yres * dpi_scale;
NativeResized();
#if defined(PPSSPP)
// Set variable here in case fullscreen was toggled by hotkey
g_Config.bFullScreen = fullscreen;
@@ -721,7 +720,6 @@ int main(int argc, char *argv[]) {
} else if (lastUIState != UISTATE_INGAME || !fullscreen) {
SDL_ShowCursor(SDL_ENABLE);
}
#endif
break;
}
@@ -860,7 +858,7 @@ int main(int argc, char *argv[]) {
UpdateRunLoop();
if (g_QuitRequested)
break;
#if defined(PPSSPP) && !defined(MOBILE_DEVICE)
#if !defined(MOBILE_DEVICE)
if (lastUIState != GetUIState()) {
lastUIState = GetUIState();
if (lastUIState == UISTATE_INGAME && g_Config.bFullScreen && !g_Config.bShowTouchControls)

0 comments on commit 3d5e047

Please sign in to comment.