window: hide mouse cursor on fullscreen boot

This commit is contained in:
Hyper 2024-11-04 12:47:44 +00:00
parent 4bf576ab1c
commit 43ec0797b0

View file

@ -139,6 +139,9 @@ void Window::Init()
s_width = Config::WindowWidth;
s_height = Config::WindowHeight;
if (s_x == -1 && s_y == -1)
s_x = s_y = SDL_WINDOWPOS_CENTERED;
if (!IsPositionValid())
{
s_x = SDL_WINDOWPOS_CENTERED;
@ -154,6 +157,9 @@ void Window::Init()
s_pWindow = SDL_CreateWindow("SWA", s_x, s_y, s_width, s_height, GetWindowFlags());
if (Config::Fullscreen)
SDL_ShowCursor(SDL_DISABLE);
SetIcon();
SetTitle();
SDL_SetWindowMinimumSize(s_pWindow, 640, 480);