1
0
Fork 0
mirror of https://github.com/Luzifer/streamdeck.git synced 2024-12-20 17:51:21 +00:00

Remove deprecated comment

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-11-22 00:09:35 +01:00
parent fcbbfc0c30
commit 16a04cbfdf
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -162,7 +162,7 @@ func (displayElementExec) drawText(c *freetype.Context, text string, textColor c
break
}
c.SetSrc(image.NewUniform(textColor)) // TODO: Dynamic
c.SetSrc(image.NewUniform(textColor))
xcenter := (float64(sd.IconSize()-2*border) / 2.0) - (float64(int(float64(ext.X)/64)) / 2.0) + float64(border)
ycenter := (float64(sd.IconSize()-2*border) / 2.0) + (float64(c.PointToFixed(fontsize/2.0)/64) / 2.0) + float64(border)