Check for fullscreen in RGUI.

This commit is contained in:
Themaister 2013-04-14 16:40:17 +02:00
parent 829840b415
commit c9a02273bb
3 changed files with 7 additions and 3 deletions

View File

@ -2141,6 +2141,9 @@ bool menu_iterate(void)
#ifdef HAVE_OVERLAY
rarch_check_overlay();
#endif
#ifndef RARCH_PERFORMANCE_MODE
rarch_check_fullscreen();
#endif
#ifndef GEKKO
/* TODO - not sure if correct regarding RARCH_QUIT_KEY */

View File

@ -689,6 +689,7 @@ void rarch_input_poll(void);
void rarch_check_overlay(void);
void rarch_init_rewind(void);
void rarch_deinit_rewind(void);
bool rarch_check_fullscreen(void);
void rarch_load_state(void);
void rarch_save_state(void);

View File

@ -1961,7 +1961,7 @@ static void check_savestates(bool immutable)
}
#if !defined(RARCH_PERFORMANCE_MODE)
static bool check_fullscreen(void)
bool rarch_check_fullscreen(void)
{
// If we go fullscreen we drop all drivers and reinit to be safe.
static bool was_pressed = false;
@ -2649,7 +2649,7 @@ static void do_state_checks(void)
check_pause();
check_oneshot();
if (check_fullscreen() && g_extern.is_paused)
if (rarch_check_fullscreen() && g_extern.is_paused)
rarch_render_cached_frame();
if (g_extern.is_paused && !g_extern.is_oneshot)
@ -2686,7 +2686,7 @@ static void do_state_checks(void)
{
check_netplay_flip();
#if !defined(RARCH_PERFORMANCE_MODE)
check_fullscreen();
rarch_check_fullscreen();
#endif
}
#endif