aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alv-lib/love.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/alv-lib/love.moon b/alv-lib/love.moon
index f29da91..7dff57e 100644
--- a/alv-lib/love.moon
+++ b/alv-lib/love.moon
@@ -222,7 +222,7 @@ Create a shape that draws the text `str` with font `font` (or the default font).
fnt or= love.graphics.getFont!
width = fnt\getWidth str
height = fnt\getHeight!
- love.graphics.print str, fnt, width*wm, -height/2
+ love.graphics.print str, fnt, math.floor(width*wm), math.floor(-height/2)
color = Constant.meta
meta: