Bug fix for hot key toggling of background render plane for Qt GUI.

This commit is contained in:
mjbudd77 2021-03-21 19:47:00 -04:00
parent 04caf3a03f
commit 099f5820e2
1 changed files with 6 additions and 9 deletions

View File

@ -579,7 +579,7 @@ static void KeyboardCommands (void)
} }
} }
if (g_keyState[SDL_SCANCODE_LSHIFT] || g_keyState[SDL_SCANCODE_RSHIFT]) if (g_keyState[SDL_SCANCODE_LSHIFT] || g_keyState[SDL_SCANCODE_RSHIFT])
{ {
is_shift = 1; is_shift = 1;
} }
@ -600,14 +600,11 @@ static void KeyboardCommands (void)
if ( Hotkeys[HK_TOGGLE_BG].getRisingEdge() ) if ( Hotkeys[HK_TOGGLE_BG].getRisingEdge() )
{ {
if (is_shift) bool fgOn, bgOn;
{
FCEUI_SetRenderPlanes (true, false); FCEUI_GetRenderPlanes( fgOn, bgOn );
}
else FCEUI_SetRenderPlanes( fgOn, !bgOn );
{
FCEUI_SetRenderPlanes (true, true);
}
} }
// Alt-Enter to toggle full-screen // Alt-Enter to toggle full-screen