From: Lukáš Jiřiště Date: Sun, 23 Feb 2025 19:34:59 +0000 (+0100) Subject: Add automatic refresh after simulation step (next) X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=cd1301758a64cc1b760da30af362c4be2b140124;p=FET_sim.git Add automatic refresh after simulation step (next) --- 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)