mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
video: fix profiler not revealing mouse cursor in fullscreen (#391)
This commit is contained in:
parent
8df3e0e440
commit
ab382deb04
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;
|
bool toggleProfiler = SDL_GetKeyboardState(nullptr)[SDL_SCANCODE_F1] != 0;
|
||||||
|
|
||||||
if (!g_profilerWasToggled && toggleProfiler)
|
if (!g_profilerWasToggled && toggleProfiler)
|
||||||
|
{
|
||||||
g_profilerVisible = !g_profilerVisible;
|
g_profilerVisible = !g_profilerVisible;
|
||||||
|
|
||||||
|
GameWindow::SetFullscreenCursorVisibility(App::s_isInit ? g_profilerVisible : true);
|
||||||
|
}
|
||||||
|
|
||||||
g_profilerWasToggled = toggleProfiler;
|
g_profilerWasToggled = toggleProfiler;
|
||||||
|
|
||||||
if (!g_profilerVisible)
|
if (!g_profilerVisible)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue