From f4af7b683e4ce0cb67d5b03d24b6be4f50e72ca4 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:22:21 -0500 Subject: stats.lua: fix blurry graphs when --osd-blur is set When --osd-blur is set to a nonzero value, the graphs also become blurry. This is because they are rendered by the osd-overlay command with the "OSD" style which has OSD blur applied, and are treated no differently from texts. Fix this by using the "Default" style for these graphs which uses the default OSD options. --- player/lua/stats.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 5d1c472685..82b7c118ce 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -222,7 +222,7 @@ local function generate_graph(values, i, len, v_max, v_avg, scale, x_tics) local bg_box = format("{\\bord0.5}{\\3c&H%s&}{\\1c&H%s&}m 0 %f l %f %f %f 0 0 0", o.plot_bg_border_color, o.plot_bg_color, y_max, x_max, y_max, x_max) - return format("%s{\\r}{\\pbo%f}{\\shad0}{\\alpha&H00}{\\p1}%s{\\p0}{\\bord0}{\\1c&H%s}{\\p1}%s{\\p0}%s", + return format("%s{\\r}{\\rDefault}{\\pbo%f}{\\shad0}{\\alpha&H00}{\\p1}%s{\\p0}{\\bord0}{\\1c&H%s}{\\p1}%s{\\p0}%s", o.prefix_sep, y_offset, bg_box, o.plot_color, table.concat(s), text_style()) end -- cgit v1.2.3