mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
video: fix profiler not revealing mouse cursor in fullscreen
This commit is contained in:
parent
fe083f0eed
commit
e41499b255
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue