0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

osc: fix mouse areas

The scaling was the wrong way around, and the section name was missing.

Regression since commit 5fa45fb5.

Fixes #2916.
This commit is contained in:
wm4 2016-03-08 09:23:50 +01:00
parent 2db1b9e474
commit 0cdd8fff67

View File

@ -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)