Cleanups
This commit is contained in:
parent
6739616be2
commit
1c849270a0
|
@ -653,7 +653,8 @@ static int action_ok_file_load_with_detect_core(const char *path,
|
||||||
common_load_content(false);
|
common_load_content(false);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else if (ret == 0)
|
|
||||||
|
if (ret == 0)
|
||||||
menu_list_push_stack_refresh(
|
menu_list_push_stack_refresh(
|
||||||
driver.menu->menu_list,
|
driver.menu->menu_list,
|
||||||
g_settings.libretro_directory,
|
g_settings.libretro_directory,
|
||||||
|
@ -735,6 +736,10 @@ static int action_ok_set_path(const char *path,
|
||||||
static int action_ok_custom_viewport(const char *path,
|
static int action_ok_custom_viewport(const char *path,
|
||||||
const char *label, unsigned type, size_t idx)
|
const char *label, unsigned type, size_t idx)
|
||||||
{
|
{
|
||||||
|
/* Start with something sane. */
|
||||||
|
rarch_viewport_t *custom = (rarch_viewport_t*)
|
||||||
|
&g_extern.console.screen.viewports.custom_vp;
|
||||||
|
|
||||||
menu_list_push_stack(
|
menu_list_push_stack(
|
||||||
driver.menu->menu_list,
|
driver.menu->menu_list,
|
||||||
"",
|
"",
|
||||||
|
@ -742,13 +747,10 @@ static int action_ok_custom_viewport(const char *path,
|
||||||
MENU_SETTINGS_CUSTOM_VIEWPORT,
|
MENU_SETTINGS_CUSTOM_VIEWPORT,
|
||||||
idx);
|
idx);
|
||||||
|
|
||||||
/* Start with something sane. */
|
|
||||||
rarch_viewport_t *custom = (rarch_viewport_t*)
|
|
||||||
&g_extern.console.screen.viewports.custom_vp;
|
|
||||||
|
|
||||||
if (driver.video_data && driver.video &&
|
if (driver.video_data && driver.video &&
|
||||||
driver.video->viewport_info)
|
driver.video->viewport_info)
|
||||||
driver.video->viewport_info(driver.video_data, custom);
|
driver.video->viewport_info(driver.video_data, custom);
|
||||||
|
|
||||||
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||||
(float)custom->width / custom->height;
|
(float)custom->width / custom->height;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue