mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
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
|
||||
if (flags & DRIVER_MENU)
|
||||
{
|
||||
init_menu();
|
||||
|
||||
if (driver->menu_ctx && driver->menu_ctx->context_reset)
|
||||
driver->menu_ctx->context_reset();
|
||||
}
|
||||
#endif
|
||||
|
||||
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)
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
#ifndef HAVE_DYNAMIC
|
||||
retro_get_system_info(info);
|
||||
#endif
|
||||
|
||||
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[],
|
||||
|
@ -164,8 +164,6 @@ void init_menu(void)
|
||||
RARCH_ERR("Cannot initialize menu lists.\n");
|
||||
rarch_fail(1, "init_menu()");
|
||||
}
|
||||
|
||||
menu_driver_context_reset();
|
||||
}
|
||||
|
||||
menu_handle_t *menu_driver_get_ptr(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user