MARGIN
This commit is contained in:
parent
ca4ba5229a
commit
5948f30396
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue