remove the empty || that is shown when FPS display is disabled

This commit is contained in:
radius 2018-02-13 21:57:26 -05:00
parent 71b423c572
commit 5b99a74cd8
1 changed files with 5 additions and 5 deletions

View File

@ -2414,17 +2414,17 @@ void video_driver_frame(const void *data, unsigned width,
{ {
char frames_text[64]; char frames_text[64];
fill_pathname_noext(video_driver_window_title, if (video_info.fps_show)
{
fill_pathname_noext(video_driver_window_title,
video_driver_title_buf, video_driver_title_buf,
" || ", " || ",
sizeof(video_driver_window_title)); sizeof(video_driver_window_title));
if (video_info.fps_show)
{
last_fps = TIME_TO_FPS(curr_time, new_time, FPS_UPDATE_INTERVAL); last_fps = TIME_TO_FPS(curr_time, new_time, FPS_UPDATE_INTERVAL);
snprintf(video_info.fps_text, snprintf(video_info.fps_text,
sizeof(video_info.fps_text), sizeof(video_info.fps_text),
" FPS: %6.1f", last_fps); " FPS: %6.1f ", last_fps);
strlcat(video_driver_window_title, strlcat(video_driver_window_title,
video_info.fps_text, video_info.fps_text,
sizeof(video_driver_window_title)); sizeof(video_driver_window_title));
@ -2435,7 +2435,7 @@ void video_driver_frame(const void *data, unsigned width,
if (video_info.framecount_show) if (video_info.framecount_show)
{ {
strlcat(video_driver_window_title, strlcat(video_driver_window_title,
" || Frames: ", " || Frames: ",
sizeof(video_driver_window_title)); sizeof(video_driver_window_title));
snprintf(frames_text, snprintf(frames_text,