mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08: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:
committed by
Diogo Franco (Kovensky)
parent
909c4d7711
commit
295fdeb086
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user