(RARCH_CONSOLE) do not set core aspect ratio until ROM is loaded

This commit is contained in:
Toad King 2012-08-20 22:28:12 -04:00
parent 3552f0ae16
commit fa643ee56d
4 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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();

View File

@ -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();

View File

@ -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();