Add non multithread mode

This commit is contained in:
2025-02-22 16:15:05 +01:00
parent f184204be7
commit 274c99f98b
4 changed files with 74 additions and 34 deletions

View File

@@ -85,7 +85,7 @@ void init_switches(Switches *switches, SDL_Renderer *renderer, int x, int y, int
fprintf(stderr, "Failed to create texture: %s\n", SDL_GetError());
exit(EXIT_FAILURE);
}
switches->value = (1 << 0) | (1 << 1);
switches->value = 0;
generate_switch_rects(switches);
update_switches_texture(renderer, switches);
}