another integer coordinate

This commit is contained in:
Kartik K. Agaram 2022-05-19 05:49:32 -07:00
parent 35d14c8aff
commit f69e17d350
1 changed files with 1 additions and 1 deletions

View File

@ -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)