summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-02-26 11:22:21 -0500
committersfan5 <sfan5@live.de>2024-02-27 08:36:56 +0100
commitf4af7b683e4ce0cb67d5b03d24b6be4f50e72ca4 (patch)
tree1d308f1513e731cc2ff2ccf0648dcc96310ee61c /player
parent64627855be6da4d2ba9bb1344074aa65d102f78a (diff)
downloadmpv-f4af7b683e4ce0cb67d5b03d24b6be4f50e72ca4.tar.bz2
mpv-f4af7b683e4ce0cb67d5b03d24b6be4f50e72ca4.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/lua/stats.lua2
1 files changed, 1 insertions, 1 deletions
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