Make 'Show FPS" work again

This commit is contained in:
twinaphex 2017-01-18 00:23:57 +01:00
parent 51976d496f
commit b433ccab09

View File

@ -1050,9 +1050,8 @@ bool video_monitor_get_fps(
video_driver_frame_time_samples[write_index] = new_time - fps_time;
fps_time = new_time;
if (video_info.fullscreen)
return false;
if (!video_info.fullscreen)
{
if ((video_driver_frame_count % FPS_UPDATE_INTERVAL) == 0)
{
char frames_text[64];
@ -1080,6 +1079,7 @@ bool video_monitor_get_fps(
strlcat(buf, frames_text, size);
ret = true;
}
}
if (buf_fps && video_info.fps_show)
snprintf(buf_fps, size_fps, "FPS: %6.1f || %s: " STRING_REP_UINT64,