From 9c1885a46ea3dd5a34e1ad885f6961b18a31ece0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 8 May 2016 22:00:30 +0200 Subject: [PATCH] Fix Display FPS --- gfx/common/x11_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/common/x11_common.c b/gfx/common/x11_common.c index 430a1891e5..69e362e189 100644 --- a/gfx/common/x11_common.c +++ b/gfx/common/x11_common.c @@ -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);