Skip to content

Commit

Permalink
es-core: Hide mouse before drawing the window
Browse files Browse the repository at this point in the history
Copied from Aloshi#517

Fixes recalbox/recalbox-os#687
  • Loading branch information
igungor committed Feb 15, 2016
1 parent 8ba563f commit 3d5f3d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es-core/src/Renderer_init_sdlgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -109,9 +112,6 @@ namespace Renderer
}
}

//hide mouse cursor
initialCursorState = SDL_ShowCursor(0) == 1;

return true;
}

Expand Down

0 comments on commit 3d5f3d1

Please sign in to comment.