From fbe424fa29623f3a28b21d7bd56788d69b0cdac4 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Sat, 22 Nov 2025 12:48:32 +0100 Subject: [PATCH] Fix 2d view zoom label --- paint/sources/ui_view2d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paint/sources/ui_view2d.ts b/paint/sources/ui_view2d.ts index 29786250..473b51f5 100644 --- a/paint/sources/ui_view2d.ts +++ b/paint/sources/ui_view2d.ts @@ -382,7 +382,7 @@ function ui_view2d_render() { ui._x += ew * 0.5 + 3; ui._y = 2 + start_y; - let scale_percent: i32 = math_round(ui_view2d_pan_scale * 100.0); + let scale_percent: i32 = math_round((tw / tex.width) * 100); ui_text(scale_percent + "%"); ui.enabled = true;