Skip to content

Commit d0eee91

Browse files
committed
es-core: Disable mouse cursor before drawing the main window
Copied from Aloshi#517
1 parent 8ba563f commit d0eee91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

es-core/src/Renderer_init_sdlgl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ namespace Renderer
3636
return false;
3737
}
3838

39+
//hide mouse cursor
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);
@@ -109,9 +112,6 @@ namespace Renderer
109112
}
110113
}
111114

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

0 commit comments

Comments
 (0)