mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed icons in messages being misaligned
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user