Fix Display FPS

This commit is contained in:
twinaphex 2016-05-08 22:00:30 +02:00
parent 3002777196
commit 9c1885a46e

View File

@ -554,7 +554,7 @@ void x11_update_window_title(void *data)
char buf_fps[128] = {0};
settings_t *settings = config_get_ptr();
if (video_monitor_get_fps(buf, sizeof(buf), NULL, 0))
if (video_monitor_get_fps(buf, sizeof(buf), buf_fps, sizeof(buf_fps)))
XStoreName(g_x11_dpy, g_x11_win, buf);
if (settings->fps_show)
runloop_msg_queue_push(buf_fps, 1, 1, false);