From ef039c2c083f1d561e13a87f885c00347c5eb3d3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 29 Mar 2018 22:39:27 +0200 Subject: [PATCH] Cleanups --- gfx/video_driver.c | 3 ++- runahead/secondary_core.c | 11 ----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index e7f8ed667b..30fc5756c5 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2521,12 +2521,13 @@ void video_driver_frame(const void *data, unsigned width, audio_statistics_t audio_stats = {0.0f}; double stddev = 0.0; struct retro_system_av_info *av_info = &video_driver_av_info; - bool measure_frame_time = video_monitor_fps_statistics(NULL, &stddev, NULL); unsigned red = 255; unsigned green = 255; unsigned blue = 255; unsigned alpha = 255; + video_monitor_fps_statistics(NULL, &stddev, NULL); + video_info.osd_stat_params.x = 0.010f; video_info.osd_stat_params.y = 0.950f; video_info.osd_stat_params.scale = 1.0f; diff --git a/runahead/secondary_core.c b/runahead/secondary_core.c index 1f3ebb8f1c..9aba8323ba 100644 --- a/runahead/secondary_core.c +++ b/runahead/secondary_core.c @@ -40,10 +40,6 @@ static char* copy_core_to_temp_file(void); static bool write_file_with_random_name(char **tempDllPath, const char *retroarchTempPath, const void* data, ssize_t dataSize); -static void* InputListElementConstructor(void); - -static void secondary_core_clear(void); - static bool secondary_core_create(void); bool secondary_core_run_no_input_polling(void); @@ -182,13 +178,6 @@ bool write_file_with_random_name(char **tempDllPath, return true; } -void secondary_core_clear(void) -{ - secondary_library_path = NULL; - secondary_module = NULL; - memset(&secondary_core, 0, sizeof(struct retro_core_t)); -} - bool secondary_core_create(void) { long port, device;