From 3e4639ce6871f50aca13aa1fe66620b08471c9bd Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Tue, 20 Jul 2021 00:27:37 +0100 Subject: Features: Added multiple instructions and added an infinite loop detector Now we are able to detect when we are entering an infinite loop to stop the program. --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 5269978..9f5dd1b 100644 --- a/main.c +++ b/main.c @@ -35,6 +35,8 @@ int main(int argc, char** argv) { if(event.type == SDL_QUIT) goto exit; + if(event.type == SDL_WINDOWEVENT) + SDL_RenderPresent(renderer); } emulator_tick(&emulator); -- cgit 1.4.1