Fix node grid scaling

This commit is contained in:
luboslenco
2025-01-06 15:17:47 +01:00
parent 1e5e733592
commit c2ae86003a
+3 -2
View File
@@ -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;
}