From 05ca43e63784e885902a5442a8cc0d4a58931259 Mon Sep 17 00:00:00 2001 From: rxi Date: Sun, 3 May 2020 16:48:35 +0100 Subject: [PATCH] Changed rounding type on common.draw_text() --- data/core/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/common.lua b/data/core/common.lua index f780480..fce50a1 100644 --- a/data/core/common.lua +++ b/data/core/common.lua @@ -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