mirror of
https://github.com/Luzifer/streamdeck.git
synced 2024-12-20 09:41:19 +00:00
Fix slight calculation bug in text height
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f9ef030362
commit
21a30d8e18
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func (t *textOnImageRenderer) drawText(c *freetype.Context, text string, textCol
|
|||
}
|
||||
|
||||
var (
|
||||
yTotal = (int(c.PointToFixed(fontsize)/64))*len(textLines) + len(textLines)*2
|
||||
yTotal = (int(c.PointToFixed(fontsize)/64))*len(textLines) + (len(textLines)-1)*2
|
||||
yLineTop = int(float64(sd.IconSize())/2.0 - float64(yTotal)/2.0)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue