From 3d5f3d1a27fb34d8f432c3897ee85ae427377496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20=C4=B0brahim=20G=C3=BCng=C3=B6r?= Date: Mon, 15 Feb 2016 19:01:27 +0200 Subject: [PATCH] es-core: Hide mouse before drawing the window Copied from https://github.com/Aloshi/EmulationStation/pull/517 Fixes recalbox/recalbox-os#687 --- es-core/src/Renderer_init_sdlgl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-core/src/Renderer_init_sdlgl.cpp b/es-core/src/Renderer_init_sdlgl.cpp index 41315cfb11..a72f56eafa 100644 --- a/es-core/src/Renderer_init_sdlgl.cpp +++ b/es-core/src/Renderer_init_sdlgl.cpp @@ -36,6 +36,9 @@ namespace Renderer return false; } + //hide mouse cursor + initialCursorState = SDL_ShowCursor(0) == 1; + SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); @@ -109,9 +112,6 @@ namespace Renderer } } - //hide mouse cursor - initialCursorState = SDL_ShowCursor(0) == 1; - return true; }