From e41499b2558377a93c80abe59512a55fae686f22 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Wed, 12 Feb 2025 23:36:31 +0000 Subject: [PATCH] video: fix profiler not revealing mouse cursor in fullscreen --- UnleashedRecomp/gpu/video.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index fb0079a4..4a0e1012 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)