mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-01 04:00:32 +00:00
(RARCH_CONSOLE) fix core-provided aspect ratio
This commit is contained in:
parent
dc76d834ae
commit
0c326bba2f
@ -355,7 +355,7 @@ void gfx_ctx_set_aspect_ratio(void *data, unsigned aspectratio_index)
|
||||
|
||||
if (g_console.aspect_ratio_index == ASPECT_RATIO_AUTO)
|
||||
rarch_set_auto_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
|
||||
else if(g_console.aspect_ratio_index == ASPECT_RATIO_CUSTOM)
|
||||
else if(g_console.aspect_ratio_index == ASPECT_RATIO_CORE)
|
||||
rarch_set_core_viewport();
|
||||
|
||||
g_settings.video.aspect_ratio = aspectratio_lut[g_console.aspect_ratio_index].value;
|
||||
|
@ -158,7 +158,7 @@ void gfx_ctx_set_aspect_ratio(void *data, unsigned aspectratio_index)
|
||||
|
||||
if(g_console.aspect_ratio_index == ASPECT_RATIO_AUTO)
|
||||
rarch_set_auto_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
|
||||
else if(g_console.aspect_ratio_index == ASPECT_RATIO_CUSTOM)
|
||||
else if(g_console.aspect_ratio_index == ASPECT_RATIO_CORE)
|
||||
rarch_set_core_viewport();
|
||||
|
||||
g_settings.video.aspect_ratio = aspectratio_lut[g_console.aspect_ratio_index].value;
|
||||
|
@ -70,7 +70,7 @@ void gx_set_aspect_ratio(void *data, unsigned aspectratio_idx)
|
||||
|
||||
if (g_console.aspect_ratio_index == ASPECT_RATIO_AUTO)
|
||||
rarch_set_auto_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
|
||||
else if(g_console.aspect_ratio_index == ASPECT_RATIO_CUSTOM)
|
||||
else if(g_console.aspect_ratio_index == ASPECT_RATIO_CORE)
|
||||
rarch_set_core_viewport();
|
||||
|
||||
g_settings.video.aspect_ratio = aspectratio_lut[g_console.aspect_ratio_index].value;
|
||||
|
Loading…
Reference in New Issue
Block a user