2023-05-01 13:12:01 +00:00
|
|
|
diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
|
2023-09-30 22:51:09 +00:00
|
|
|
index dae1b6934..ea2230533 100644
|
2023-05-01 13:12:01 +00:00
|
|
|
--- a/SDL/SDLMain.cpp
|
|
|
|
+++ b/SDL/SDLMain.cpp
|
2023-09-30 22:51:09 +00:00
|
|
|
@@ -817,12 +817,7 @@ static void ProcessSDLEvent(SDL_Window *window, const SDL_Event &event, InputSta
|
2023-08-26 19:52:53 +00:00
|
|
|
g_Config.iWindowWidth = new_width;
|
|
|
|
g_Config.iWindowHeight = new_height;
|
|
|
|
}
|
|
|
|
- // Hide/Show cursor correctly toggling fullscreen
|
|
|
|
- if (lastUIState == UISTATE_INGAME && fullscreen && !g_Config.bShowTouchControls) {
|
|
|
|
- SDL_ShowCursor(SDL_DISABLE);
|
|
|
|
- } else if (lastUIState != UISTATE_INGAME || !fullscreen) {
|
|
|
|
- SDL_ShowCursor(SDL_ENABLE);
|
|
|
|
- }
|
|
|
|
+ SDL_ShowCursor(SDL_DISABLE);
|
|
|
|
break;
|
|
|
|
}
|
2023-02-22 11:58:29 +00:00
|
|
|
|
2023-09-30 22:51:09 +00:00
|
|
|
@@ -1435,9 +1430,7 @@ int main(int argc, char *argv[]) {
|
|
|
|
printf("Init from thread error: '%s'\n", error_message.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
-#ifdef MOBILE_DEVICE
|
|
|
|
SDL_ShowCursor(SDL_DISABLE);
|
|
|
|
-#endif
|
2023-02-22 11:58:29 +00:00
|
|
|
|
2023-09-30 22:51:09 +00:00
|
|
|
// Ensure that the swap interval is set after context creation (needed for kmsdrm)
|
|
|
|
SDL_GL_SetSwapInterval(1);
|