mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-27 08:46:00 +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
|
width = graphicWidth # +8 # No padding
|
||||||
xStart = 0 # 4
|
xStart = 0 # 4
|
||||||
yStart = [(lineheight / 2) - (graphicHeight / 2), 0].max
|
yStart = [(lineheight / 2) - (graphicHeight / 2), 0].max
|
||||||
|
yStart += 4 # TEXT OFFSET
|
||||||
graphicRect = Rect.new(graphicX, graphicY, graphicWidth, graphicHeight)
|
graphicRect = Rect.new(graphicX, graphicY, graphicWidth, graphicHeight)
|
||||||
else
|
else
|
||||||
xStart = 0
|
xStart = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user