]> www.ljiriste.work Git - FET_sim.git/commitdiff
Fix wrong viewport translation when drawing node
authorLukáš Jiřiště <redacted>
Tue, 11 Aug 2026 19:24:23 +0000 (21:24 +0200)
committerLukáš Jiřiště <redacted>
Tue, 11 Aug 2026 19:24:23 +0000 (21:24 +0200)
src/schema_mode.c

index cf7a7abbc50b1a942470a1c199571d66cb401096..57113e2ec1c20aea3cb09479f61ccc17248da6aa 100644 (file)
@@ -223,7 +223,9 @@ int place_segment(t_schem_win *schematics_win, t_node *node, t_node_segment *pre
                return (1);     // The choice not to ungetch is deliberate, because it felt weird using it
        ft_vec_append(&node->segments, prediction);
        schema_draw_segment(*schematics_win, prediction);
+       cursor_move_unprivileged(*schematics_win, prediction->position.y, prediction->position.x);
        *prediction = tmp;
+       cursor_move(schematics_win, prediction->position.y, prediction->position.x);
        return (0);
 }