cleanup and optimizations

This commit is contained in:
Mikayla Fischler
2024-02-18 16:49:39 -05:00
parent 827953c0a1
commit 1a9892b291
3 changed files with 16 additions and 26 deletions

View File

@@ -426,7 +426,7 @@ end
-- get the block size of a monitor given its width and height <b>at a text scale of 0.5</b>
---@nodiscard
---@param w integer character width
---@param h integer character width
---@param h integer character height
---@return integer block_width, integer block_height
function ppm.monitor_block_size(w, h)
local width = math.floor((w - 15) / 21) + 1