diff options
author | wm4 <wm4@nowhere> | 2015-01-25 01:23:29 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-25 01:23:29 +0100 |
commit | 9cba45194937c3369c06bab1475d2997b1ae680a (patch) | |
tree | 800bf3bfb81f1b4e278186d841d458de6f5f1479 /player/lua/assdraw.lua | |
parent | 99c856d3cd2ebad7db58519dc6a8902b1d274512 (diff) | |
download | mpv-9cba45194937c3369c06bab1475d2997b1ae680a.tar.bz2 mpv-9cba45194937c3369c06bab1475d2997b1ae680a.tar.xz |
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.
Diffstat (limited to 'player/lua/assdraw.lua')
-rw-r--r-- | player/lua/assdraw.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/assdraw.lua b/player/lua/assdraw.lua index 7252826d9b..8ff004e04b 100644 --- a/player/lua/assdraw.lua +++ b/player/lua/assdraw.lua @@ -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) |