mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-24 08:52:21 +00:00
window: hide mouse cursor on fullscreen boot
This commit is contained in:
parent
4bf576ab1c
commit
43ec0797b0
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue