mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +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_width = Config::WindowWidth;
|
||||||
s_height = Config::WindowHeight;
|
s_height = Config::WindowHeight;
|
||||||
|
|
||||||
|
if (s_x == -1 && s_y == -1)
|
||||||
|
s_x = s_y = SDL_WINDOWPOS_CENTERED;
|
||||||
|
|
||||||
if (!IsPositionValid())
|
if (!IsPositionValid())
|
||||||
{
|
{
|
||||||
s_x = SDL_WINDOWPOS_CENTERED;
|
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());
|
s_pWindow = SDL_CreateWindow("SWA", s_x, s_y, s_width, s_height, GetWindowFlags());
|
||||||
|
|
||||||
|
if (Config::Fullscreen)
|
||||||
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
|
|
||||||
SetIcon();
|
SetIcon();
|
||||||
SetTitle();
|
SetTitle();
|
||||||
SDL_SetWindowMinimumSize(s_pWindow, 640, 480);
|
SDL_SetWindowMinimumSize(s_pWindow, 640, 480);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue