summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2016-11-07 20:00:31 +0000
committerRicardo Constantino <wiiaboo@gmail.com>2016-11-07 22:00:17 +0000
commit8b7f23129d2e6467ec31826f46657ff7d546624c (patch)
tree5afbb8e9dbaef054b8d1628f01b7681f4e70e4c4 /player
parent6a06e6002b4d879b1586dcee74cadb5f837680d8 (diff)
downloadmpv-8b7f23129d2e6467ec31826f46657ff7d546624c.tar.bz2
mpv-8b7f23129d2e6467ec31826f46657ff7d546624c.tar.xz
osc: slimbox: fix clipping with seekbarstyle=bar
Fixes #3737
Diffstat (limited to 'player')
-rw-r--r--player/lua/osc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 14c18767d8..a6cdcbe0eb 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1093,7 +1093,9 @@ layouts["slimbox"] = function ()
lo.style = osc_styles.box
lo.alpha[1] = user_opts.boxalpha
lo.alpha[3] = 0
- lo.box.radius = osc_geo.r
+ if not (user_opts["seekbarstyle"] == "bar") then
+ lo.box.radius = osc_geo.r
+ end
lo = add_layout("seekbar")