Set custom refresh rate before starting main loop.

This commit is contained in:
Themaister 2012-12-25 14:00:24 +01:00
parent e4e0d9c72d
commit 4d802ccfbc
2 changed files with 1 additions and 6 deletions

View File

@ -469,6 +469,7 @@ static void* android_app_entry(void* param)
RARCH_LOG("RetroArch started.\n");
rarch_init_msg_queue();
g_android.last_orient = AConfiguration_getOrientation(android_app->config);
driver_set_monitor_refresh_rate(g_android.disp_refresh_rate);
while((input_key_pressed_func(RARCH_PAUSE_TOGGLE)) ? android_run_events(g_android.app) : rarch_main_iterate());
RARCH_LOG("RetroArch stopped.\n");
}

View File

@ -187,13 +187,7 @@ void config_set_defaults(void)
g_settings.video.second_pass_smooth = second_pass_smooth;
#endif
// Android screens can have variable refresh rates - don't set a
// hardcoded value for Android devices
#if defined(ANDROID)
g_settings.video.refresh_rate = g_android.disp_refresh_rate;
#else
g_settings.video.refresh_rate = refresh_rate;
#endif
g_settings.video.post_filter_record = post_filter_record;
g_settings.video.gpu_record = gpu_record;
g_settings.video.gpu_screenshot = gpu_screenshot;