From ab382deb04ccb9a65440007637f5d4b36ffdf151 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Thu, 13 Feb 2025 12:43:03 +0000 Subject: [PATCH] video: fix profiler not revealing mouse cursor in fullscreen (#391) --- UnleashedRecomp/gpu/video.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index fb0079a..4a0e101 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -2232,8 +2232,12 @@ static void DrawProfiler() bool toggleProfiler = SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_F1] != 0; if (!g_profilerWasToggled && toggleProfiler) + { g_profilerVisible = !g_profilerVisible; + GameWindow::SetFullscreenCursorVisibility(App::s_isInit ? g_profilerVisible : true); + } + g_profilerWasToggled = toggleProfiler; if (!g_profilerVisible)