Hide mouse cursor early

This commit is contained in:
Christian Uhsat 2015-09-27 20:38:32 +02:00 committed by Jools Wills
parent 59d4ad7c1e
commit 15fdbb2a83

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;
}