bugfix: node width shouldn't be scaled by zoom

Instead, we're scaling font size by zoom.
This commit is contained in:
Kartik K. Agaram 2023-06-21 22:15:11 -07:00
parent f9784faaf7
commit b0e870b293
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ compute_layout = function(node, x,y, nodes_to_render, preserve_screen_top_of_cur
else
node.w = 0
for i,s in ipairs(node.data) do
local width = love.graphics.getFont():getWidth(s)
local width = love.graphics.getFont():getWidth(s)/Viewport.zoom
if node.w < width then node.w = width end
end
end