mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 06:50:32 +00:00
(RARCH_CONSOLE) do not set core aspect ratio until ROM is loaded
This commit is contained in:
parent
3552f0ae16
commit
fa643ee56d
@ -83,6 +83,10 @@ void rarch_set_auto_viewport(unsigned width, unsigned height)
|
||||
void rarch_set_core_viewport()
|
||||
{
|
||||
struct retro_system_av_info info;
|
||||
|
||||
if (!g_console.emulator_initialized)
|
||||
return;
|
||||
|
||||
retro_get_system_av_info(&info);
|
||||
|
||||
// fallback to 1:1 pixel ratio if none provided
|
||||
|
@ -358,8 +358,7 @@ begin_loop:
|
||||
|
||||
input_gx.poll(NULL);
|
||||
|
||||
rarch_set_auto_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
|
||||
rarch_set_core_viewport();
|
||||
video_set_aspect_ratio_func(g_console.aspect_ratio_index);
|
||||
|
||||
audio_start_func();
|
||||
|
||||
|
@ -316,8 +316,7 @@ begin_loop:
|
||||
|
||||
input_ps3.poll(NULL);
|
||||
|
||||
rarch_set_auto_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
|
||||
rarch_set_core_viewport();
|
||||
video_set_aspect_ratio_func(g_console.aspect_ratio_index);
|
||||
|
||||
do{
|
||||
repeat = rarch_main_iterate();
|
||||
|
@ -188,8 +188,7 @@ begin_loop:
|
||||
|
||||
input_xinput.poll(NULL);
|
||||
|
||||
rarch_set_auto_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
|
||||
rarch_set_core_viewport();
|
||||
video_set_aspect_ratio_func(g_console.aspect_ratio_index);
|
||||
|
||||
do{
|
||||
repeat = rarch_main_iterate();
|
||||
|
Loading…
Reference in New Issue
Block a user