From 0cdd8fff6749064d559a672e609fe640f7869ae1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 8 Mar 2016 09:23:50 +0100 Subject: [PATCH] osc: fix mouse areas The scaling was the wrong way around, and the section name was missing. Regression since commit 5fa45fb5. Fixes #2916. --- player/lua/osc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)