From cd1301758a64cc1b760da30af362c4be2b140124 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Sun, 23 Feb 2025 20:34:59 +0100 Subject: [PATCH] Add automatic refresh after simulation step (next) --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 9ba80e2..8ec6331 100644 --- a/src/main.c +++ b/src/main.c @@ -229,7 +229,10 @@ int process_input(t_windows *windows, t_vec *nodes, t_vec *mosfets) return (1); res = 1; if (input.command == next) + { res = c_next(input, nodes, mosfets); + refresh_schema_win(windows->schematics_win, nodes, mosfets); + } else if (input.command == draw) res = c_draw(windows->command_win, input, nodes, mosfets); else if (input.command == setnode) -- 2.30.2