Fixed icons in messages being misaligned

This commit is contained in:
Maruno17
2022-04-18 21:16:46 +01:00
parent 408e63b5d7
commit 144ad91bc1

View File

@@ -606,6 +606,7 @@ def getFormattedText(bitmap, xDst, yDst, widthDst, heightDst, text, lineheight =
width = graphicWidth # +8 # No padding
xStart = 0 # 4
yStart = [(lineheight / 2) - (graphicHeight / 2), 0].max
yStart += 4 # TEXT OFFSET
graphicRect = Rect.new(graphicX, graphicY, graphicWidth, graphicHeight)
else
xStart = 0