From c0cada4b55bf550311c85653ca2a2637f19b7f48 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Fri, 30 Nov 2018 00:30:12 +0100 Subject: [PATCH] Fix title window fps counter. --- gfx/video_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index de50911b15..88ef1862ef 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2454,7 +2454,7 @@ void video_driver_frame(const void *data, unsigned width, if (video_info.fps_show) { snprintf(video_info.fps_text, sizeof(video_info.fps_text), - "|| FPS: %6.1f ", last_fps); + " || FPS: %6.1f ", last_fps); } if (video_info.framecount_show) { @@ -2464,7 +2464,7 @@ void video_driver_frame(const void *data, unsigned width, (uint64_t)video_driver_frame_count); } snprintf(video_driver_window_title, sizeof(video_driver_window_title), - "%s%s%s%s", title, video_info.fps_text, + "%s%s%s", title, video_info.fps_show ? video_info.fps_text : "", video_info.framecount_show ? frames_text : ""); }