video: fix profiler not revealing mouse cursor in fullscreen

This commit is contained in:
Hyper 2025-02-12 23:36:31 +00:00
parent fe083f0eed
commit e41499b255

View file

@ -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)