Allow toggling fullscreen from bind in RGUI.

This commit is contained in:
Themaister 2014-02-08 16:27:09 +01:00
parent 4653174cf5
commit d129258c32
3 changed files with 5 additions and 3 deletions

View File

@ -1417,6 +1417,7 @@ bool menu_iterate(void)
#ifdef HAVE_OVERLAY
rarch_check_overlay();
#endif
rarch_check_fullscreen();
if (input_key_pressed_func(RARCH_QUIT_KEY) || !video_alive_func())
{

View File

@ -716,6 +716,7 @@ void rarch_check_block_hotkey(void);
void rarch_init_rewind(void);
void rarch_deinit_rewind(void);
void rarch_set_fullscreen(bool fullscreen);
bool rarch_check_fullscreen(void);
void rarch_disk_control_set_eject(bool state, bool log);
void rarch_disk_control_set_index(unsigned index);
void rarch_disk_control_append_image(const char *path);

View File

@ -2065,7 +2065,7 @@ void rarch_set_fullscreen(bool fullscreen)
input_poll_func();
}
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;
@ -2823,7 +2823,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)
@ -2858,7 +2858,7 @@ static void do_state_checks(void)
else
{
check_netplay_flip();
check_fullscreen();
rarch_check_fullscreen();
}
#endif
}