Merge pull request #30 from joolswills/hide_mouse_early

Hide mouse cursor early
This commit is contained in:
Jools Wills 2016-02-05 00:08:19 +00:00
commit e65a1ee80a

View file

@ -36,6 +36,9 @@ namespace Renderer
return false;
}
//hide mouse cursor early
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);
@ -108,9 +111,6 @@ namespace Renderer
LOG(LogWarning) << "Tried to enable vsync, but failed! (" << SDL_GetError() << ")";
}
//hide mouse cursor
initialCursorState = SDL_ShowCursor(0) == 1;
return true;
}