about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-19 05:49:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-19 05:49:32 -0700
commitf69e17d35074d846136254f78f1b3e41b3897fa3 (patch)
treea21b47d34441e9d670f63f30a9129dd357439f2a
parent35d14c8aff021923571a3e44774340fa71a0f0ee (diff)
downloadtext.love-f69e17d35074d846136254f78f1b3e41b3897fa3.tar.gz
another integer coordinate
-rw-r--r--drawing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawing.lua b/drawing.lua
index 54fb2c2..1bd6ac7 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -688,7 +688,7 @@ function Drawing.near(point, x,y)
 end
 
 function Drawing.pixels(n)  -- parts to pixels
-  return n*Drawing_width/256
+  return math.floor(n*Drawing_width/256)
 end
 function Drawing.coord(n)  -- pixels to parts
   return math.floor(n*256/Drawing_width)