Fix 2d view zoom label

This commit is contained in:
luboslenco
2025-11-22 12:48:32 +01:00
parent 3508939c96
commit fbe424fa29
+1 -1
View File
@@ -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;