Fix fullscreen toggle
This commit is contained in:
parent
b3aad881ee
commit
6a15f8e540
5
driver.c
5
driver.c
|
@ -392,7 +392,12 @@ void init_drivers(int flags)
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
if (flags & DRIVER_MENU)
|
if (flags & DRIVER_MENU)
|
||||||
|
{
|
||||||
init_menu();
|
init_menu();
|
||||||
|
|
||||||
|
if (driver->menu_ctx && driver->menu_ctx->context_reset)
|
||||||
|
driver->menu_ctx->context_reset();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (flags & (DRIVER_VIDEO | DRIVER_AUDIO))
|
if (flags & (DRIVER_VIDEO | DRIVER_AUDIO))
|
||||||
|
|
|
@ -76,14 +76,17 @@ static void draw_frame(void)
|
||||||
**/
|
**/
|
||||||
static void menu_update_libretro_info(struct retro_system_info *info)
|
static void menu_update_libretro_info(struct retro_system_info *info)
|
||||||
{
|
{
|
||||||
|
driver_t *driver = driver_get_ptr();
|
||||||
#ifndef HAVE_DYNAMIC
|
#ifndef HAVE_DYNAMIC
|
||||||
retro_get_system_info(info);
|
retro_get_system_info(info);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rarch_main_command(RARCH_CMD_CORE_INFO_INIT);
|
rarch_main_command(RARCH_CMD_CORE_INFO_INIT);
|
||||||
rarch_main_command(RARCH_CMD_LOAD_CORE_PERSIST);
|
|
||||||
|
|
||||||
menu_driver_context_reset();
|
if (driver->menu_ctx && driver->menu_ctx->context_reset)
|
||||||
|
driver->menu_ctx->context_reset();
|
||||||
|
|
||||||
|
rarch_main_command(RARCH_CMD_LOAD_CORE_PERSIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void menu_environment_get(int *argc, char *argv[],
|
static void menu_environment_get(int *argc, char *argv[],
|
||||||
|
|
|
@ -164,8 +164,6 @@ void init_menu(void)
|
||||||
RARCH_ERR("Cannot initialize menu lists.\n");
|
RARCH_ERR("Cannot initialize menu lists.\n");
|
||||||
rarch_fail(1, "init_menu()");
|
rarch_fail(1, "init_menu()");
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_driver_context_reset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_handle_t *menu_driver_get_ptr(void)
|
menu_handle_t *menu_driver_get_ptr(void)
|
||||||
|
|
Loading…
Reference in New Issue