summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 325d15e..1023bba 100644
--- a/init.lua
+++ b/init.lua
@@ -580,7 +580,10 @@ doc.widgets.gallery = function(imagedata, playername, x, y, aspect_ratio, width,
end
for i=imageindex, math.min(#imagedata, (imageindex-1)+rows) do
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.."]"
+ formstring = formstring .. "label["..nx..","..ny..";"..i.."]"
pos = pos + 1
end
local bw, bh