From 45b61457e21fa1c72465401b80aad5c2852a87a0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 3 Oct 2014 13:45:41 +0200 Subject: [PATCH] Rewrite rarch_check_fullscreen --- retroarch.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/retroarch.c b/retroarch.c index b4490086a5..db0e52b265 100644 --- a/retroarch.c +++ b/retroarch.c @@ -1588,15 +1588,15 @@ static void main_state(unsigned cmd) bool rarch_check_fullscreen(bool pressed) { - if (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); - } + if (!pressed) + return false; - 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)