summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-08 09:23:50 +0100
committerwm4 <wm4@nowhere>2016-03-08 09:23:50 +0100
commit0cdd8fff6749064d559a672e609fe640f7869ae1 (patch)
tree5aff3a523949ea3452332be448564f607fa3561e /player
parent2db1b9e474889e5a49ab17e9f6ab58caf2f81d8b (diff)
downloadmpv-0cdd8fff6749064d559a672e609fe640f7869ae1.tar.bz2
mpv-0cdd8fff6749064d559a672e609fe640f7869ae1.tar.xz
osc: fix mouse areas
The scaling was the wrong way around, and the section name was missing. Regression since commit 5fa45fb5. Fixes #2916.
Diffstat (limited to 'player')
-rw-r--r--player/lua/osc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index f3beee85dd..23f7cc6d19 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -117,7 +117,7 @@ end
function set_virt_mouse_area(x0, y0, x1, y1, name)
local sx, sy = get_virt_scale_factor()
- mp.set_mouse_area(x0 * sx, y0 * sy, x1 * sx, y1 * sy)
+ mp.set_mouse_area(x0 / sx, y0 / sy, x1 / sx, y1 / sy, name)
end
function scale_value(x0, x1, y0, y1, val)