From 7d8747ca289bb027e33fab5c1859bd042a75b90e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Dec 2016 13:36:47 +0100 Subject: Get rid of a leaking global --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.."]" -- cgit v1.2.3