Skip to content

Commit ada32cd

Browse files
cuhsatmmatyas
authored andcommitted
Hide mouse cursor early
1 parent 16470e5 commit ada32cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

es-core/src/Renderer_init_sdlgl.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ namespace Renderer
3636
return false;
3737
}
3838

39+
//hide mouse cursor early
40+
initialCursorState = SDL_ShowCursor(0) == 1;
41+
3942
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
4043
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
4144
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
@@ -108,9 +111,6 @@ namespace Renderer
108111
LOG(LogWarning) << "Tried to enable vsync, but failed! (" << SDL_GetError() << ")";
109112
}
110113

111-
//hide mouse cursor
112-
initialCursorState = SDL_ShowCursor(0) == 1;
113-
114114
return true;
115115
}
116116

0 commit comments

Comments
 (0)