mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Rewrite rarch_check_fullscreen
This commit is contained in:
parent
550bc81722
commit
45b61457e2
16
retroarch.c
16
retroarch.c
@ -1588,15 +1588,15 @@ static void main_state(unsigned cmd)
|
|||||||
|
|
||||||
bool rarch_check_fullscreen(bool pressed)
|
bool rarch_check_fullscreen(bool pressed)
|
||||||
{
|
{
|
||||||
if (pressed)
|
if (!pressed)
|
||||||
{
|
return false;
|
||||||
/* If we go fullscreen we drop all drivers and
|
|
||||||
* reinitialize to be safe. */
|
|
||||||
g_settings.video.fullscreen = !g_settings.video.fullscreen;
|
|
||||||
rarch_main_command(RARCH_CMD_REINIT);
|
|
||||||
}
|
|
||||||
|
|
||||||
return pressed;
|
/* If we go fullscreen we drop all drivers and
|
||||||
|
* reinitialize to be safe. */
|
||||||
|
g_settings.video.fullscreen = !g_settings.video.fullscreen;
|
||||||
|
rarch_main_command(RARCH_CMD_REINIT);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void state_slot(void)
|
static void state_slot(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user