mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
lua: do not use math.pow()
It's the first thing that breaks with Lua 5.3. I don't know if there are other failures because I don't care enough.
This commit is contained in:
parent
99c856d3cd
commit
9cba451949
@ -21,7 +21,7 @@ function ass_mt.draw_stop(ass)
|
||||
end
|
||||
|
||||
function ass_mt.coord(ass, x, y)
|
||||
local scale = math.pow(2, ass.scale - 1)
|
||||
local scale = 2 ^ (ass.scale - 1)
|
||||
local ix = math.ceil(x * scale)
|
||||
local iy = math.ceil(y * scale)
|
||||
ass.text = string.format("%s %d %d", ass.text, ix, iy)
|
||||
|
Loading…
Reference in New Issue
Block a user