mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Fix fullscreen state flickering with XVideo.
This commit is contained in:
parent
f0bbeb901d
commit
0f0a4d0a5e
6
ssnes.c
6
ssnes.c
@ -953,13 +953,17 @@ static void check_savestates(void)
|
|||||||
|
|
||||||
static void check_fullscreen(void)
|
static void check_fullscreen(void)
|
||||||
{
|
{
|
||||||
|
static bool was_pressed = false;
|
||||||
|
bool pressed;
|
||||||
// If we go fullscreen we drop all drivers and reinit to be safe.
|
// If we go fullscreen we drop all drivers and reinit to be safe.
|
||||||
if (driver.input->key_pressed(driver.input_data, SSNES_FULLSCREEN_TOGGLE_KEY))
|
if ((pressed = driver.input->key_pressed(driver.input_data, SSNES_FULLSCREEN_TOGGLE_KEY)) && !was_pressed)
|
||||||
{
|
{
|
||||||
g_settings.video.fullscreen = !g_settings.video.fullscreen;
|
g_settings.video.fullscreen = !g_settings.video.fullscreen;
|
||||||
uninit_drivers();
|
uninit_drivers();
|
||||||
init_drivers();
|
init_drivers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
was_pressed = pressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void check_stateslots(void)
|
static void check_stateslots(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user