summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-05 13:36:47 +0100
committerWuzzy <almikes@aol.com>2016-12-05 13:36:47 +0100
commit7d8747ca289bb027e33fab5c1859bd042a75b90e (patch)
tree81f4b142d119f466acab2623d0e36e6c8b2dd307
parente4cace00761bac6abaf1de066aaebde57dbd8bb3 (diff)
Get rid of a leaking global
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 63c7ad8..04fda87 100644
--- a/init.lua
+++ b/init.lua
@@ -606,7 +606,7 @@ doc.widgets.gallery = function(imagedata, playername, x, y, aspect_ratio, width,
end
end
for i=imageindex, math.min(#imagedata, (imageindex-1)+rows) do
- xoffset = buttonoffset + (x + pos * iw)
+ local xoffset = buttonoffset + (x + pos * iw)
local nx = xoffset - 0.2
local ny = y - 0.05
formstring = formstring .. "image["..xoffset..","..y..";"..iw..","..ih..";"..imagedata[i].image.."]"