This commit is contained in:
Hamcha 2016-06-20 17:53:25 +02:00
parent ca4ba5229a
commit 5948f30396

View file

@ -147,7 +147,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) {
width = right - left width = right - left
x := (iwidth - width) / 2 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 { if id == len(texts)-1 {
gc.SetFontSize(scale * 0.7) gc.SetFontSize(scale * 0.7)
left, _, right, _ = gc.GetStringBounds(txt) left, _, right, _ = gc.GetStringBounds(txt)