From c2ae86003a095730d2ceb777dbefbcd30e94db15 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 6 Jan 2025 15:17:47 +0100 Subject: [PATCH] Fix node grid scaling --- base/sources/ui_nodes.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/sources/ui_nodes.ts b/base/sources/ui_nodes.ts index a899cbc2..22a6891e 100644 --- a/base/sources/ui_nodes.ts +++ b/base/sources/ui_nodes.ts @@ -708,8 +708,9 @@ function ui_nodes_draw_grid() { let wh: i32 = app_h(); let step: f32 = ui_nodes_grid_cell_w * zoom; - let w: i32 = math_floor(ww + step * 5); - let h: i32 = math_floor(wh + step * 5); + let mult: i32 = 5 * ui_SCALE(ui_nodes_ui); + let w: i32 = math_floor(ww + step * mult); + let h: i32 = math_floor(wh + step * mult); if (w < 1) { w = 1; }