diff --git a/gfx/drivers_context/drm_ctx.c b/gfx/drivers_context/drm_ctx.c index d4cd5cfe1c..d3ca729ca4 100644 --- a/gfx/drivers_context/drm_ctx.c +++ b/gfx/drivers_context/drm_ctx.c @@ -277,8 +277,11 @@ static void gfx_ctx_drm_update_window_title(void *data) char buf_fps[128]; settings_t *settings = config_get_ptr(); + buf[0] = buf_fps[0] = '\0'; + video_monitor_get_fps(buf, sizeof(buf), buf_fps, sizeof(buf_fps)); + if (settings->fps_show) runloop_msg_queue_push( buf_fps, 1, 1, false); }