Add automatic refresh after simulation step (next)
authorLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Sun, 23 Feb 2025 19:34:59 +0000 (20:34 +0100)
committerLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Sun, 23 Feb 2025 19:34:59 +0000 (20:34 +0100)
src/main.c

index 9ba80e2a7509dee1a8ddc697c0ed956e73e7f779..8ec633132946b98c86ef53495d33ed3b1978c581 100644 (file)
@@ -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)