From 5948f303966461f2d3bc57ff8fc969920fc48222 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 20 Jun 2016 17:53:25 +0200 Subject: [PATCH] MARGIN --- mods/unsplash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/unsplash.go b/mods/unsplash.go index 9d68a8c..c09f2d8 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -147,7 +147,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) { width = right - left x := (iwidth - width) / 2 - y := (iheight-txtheight)/2 + (height+margin)*float64(id+1) + y := (iheight-txtheight)/2 + (height+margin*2)*float64(id+1) if id == len(texts)-1 { gc.SetFontSize(scale * 0.7) left, _, right, _ = gc.GetStringBounds(txt)