Fix title window fps counter.

This commit is contained in:
Tatsuya79 2018-11-30 00:30:12 +01:00 committed by GitHub
parent 1caf10e1e9
commit c0cada4b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 : "");
}