Changed rounding type on common.draw_text()
This commit is contained in:
@@ -109,7 +109,7 @@ function common.draw_text(font, color, text, align, x,y,w,h)
|
|||||||
elseif align == "right" then
|
elseif align == "right" then
|
||||||
x = x + (w - tw)
|
x = x + (w - tw)
|
||||||
end
|
end
|
||||||
y = math.ceil(y + (h - th) / 2)
|
y = common.round(y + (h - th) / 2)
|
||||||
return renderer.draw_text(font, text, x, y, color), y + th
|
return renderer.draw_text(font, text, x, y, color), y + th
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user