From 4d802ccfbc0d3dcddb5a6d09acb5fe35fd65fd63 Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 25 Dec 2012 14:00:24 +0100 Subject: [PATCH] Set custom refresh rate before starting main loop. --- android/native/jni/main.c | 1 + settings.c | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/android/native/jni/main.c b/android/native/jni/main.c index 3488ee5c10..ac46e3c546 100644 --- a/android/native/jni/main.c +++ b/android/native/jni/main.c @@ -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"); } diff --git a/settings.c b/settings.c index e4ea379d15..9476194445 100644 --- a/settings.c +++ b/settings.c @@ -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;