From 51976d496f692b4f933e99e5af817de6e8c9039c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 18 Jan 2017 00:18:27 +0100 Subject: [PATCH] Don't manipulate buffer if we are fullscreen - no text writing to display window then or internal buffer --- gfx/video_driver.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 0600f086a6..9ff334989e 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1048,7 +1048,10 @@ bool video_monitor_get_fps( (MEASURE_FRAME_TIME_SAMPLES_COUNT - 1); video_driver_frame_time_samples[write_index] = new_time - fps_time; - fps_time = new_time; + fps_time = new_time; + + if (video_info.fullscreen) + return false; if ((video_driver_frame_count % FPS_UPDATE_INTERVAL) == 0) { @@ -1088,6 +1091,10 @@ bool video_monitor_get_fps( } curr_time = fps_time = new_time; + + if (video_info.fullscreen) + return true; + strlcpy(buf, video_driver_title_buf, size); if (buf_fps) strlcpy(buf_fps, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE), size_fps);