Bug fix for hot key toggling of background render plane for Qt GUI.
This commit is contained in:
parent
04caf3a03f
commit
099f5820e2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue