bugfix: node width shouldn't be scaled by zoom
Instead, we're scaling font size by zoom.
This commit is contained in:
parent
f9784faaf7
commit
b0e870b293
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue