From b0e870b29303b9e5fc4596a22d6c4bf13340b6ef Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 21 Jun 2023 22:15:11 -0700 Subject: [PATCH] bugfix: node width shouldn't be scaled by zoom Instead, we're scaling font size by zoom. --- 0021-compute_layout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0021-compute_layout b/0021-compute_layout index d89b24d..6ae7ca8 100644 --- a/0021-compute_layout +++ b/0021-compute_layout @@ -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