diff options
| author | s-ol <s+removethis@s-ol.nu> | 2025-09-16 16:17:29 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-09-16 16:17:29 +0000 |
| commit | d54eb2ea3183e16cfe162300b95157d1a986d24d (patch) | |
| tree | e59c281ccea89ccb243e5f197cea64a01e1f6de9 | |
| parent | lib/love: tsv-output takes shape (diff) | |
| download | alive-d54eb2ea3183e16cfe162300b95157d1a986d24d.tar.gz alive-d54eb2ea3183e16cfe162300b95157d1a986d24d.zip | |
lib/love: floor text coordinates
| -rw-r--r-- | alv-lib/love.moon | 2 |
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: |
