Changed rounding type on common.draw_text()

This commit is contained in:
rxi 2020-05-03 16:48:35 +01:00
parent 468905830f
commit 05ca43e637

View file

@ -109,7 +109,7 @@ function common.draw_text(font, color, text, align, x,y,w,h)
elseif align == "right" then
x = x + (w - tw)
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
end