From dc409503439c709cb1ec95e529e33f044736b05d Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Thu, 21 Nov 2024 05:11:24 +0000 Subject: [PATCH] window: always hide mouse cursor The options menu doesn't accept mouse input, so there's not really any point to showing the cursor at all. --- UnleashedRecomp/ui/window.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/UnleashedRecomp/ui/window.cpp b/UnleashedRecomp/ui/window.cpp index 2df75973..7e660ffe 100644 --- a/UnleashedRecomp/ui/window.cpp +++ b/UnleashedRecomp/ui/window.cpp @@ -81,7 +81,7 @@ int Window_OnSDLEvent(void*, SDL_Event* event) case SDL_WINDOWEVENT_FOCUS_GAINED: Window::s_isFocused = true; - SDL_ShowCursor(Window::IsFullscreen() ? SDL_DISABLE : SDL_ENABLE); + SDL_ShowCursor(SDL_DISABLE); break; case SDL_WINDOWEVENT_RESTORED: @@ -150,9 +150,6 @@ void Window::Init() s_pWindow = SDL_CreateWindow("SWA", s_x, s_y, s_width, s_height, GetWindowFlags()); - if (IsFullscreen()) - SDL_ShowCursor(SDL_DISABLE); - SetIcon(); SetTitle(); SDL_SetWindowMinimumSize(s_pWindow, 640, 480);