ref: 9254e774c05687a96a02eee959c76b66ac1239b1
parent: de00892f333cd27b2a42b53266d9940365bc7024
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Wed May 11 16:56:02 EDT 2022
initialize sdl before resetting display, add sdl_quit() to exit
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@
.DS_Store
m8c
.vscode
+.cache/
font.c
build/
compile_commands.json
--- a/main.c
+++ b/main.c
@@ -58,10 +58,10 @@
if (port == NULL)
return -1;
- if (enable_and_reset_display(port) == -1)
+ if (initialize_sdl(conf.init_fullscreen, conf.init_use_gpu) == -1)
run = 0;
- if (initialize_sdl(conf.init_fullscreen, conf.init_use_gpu) == -1)
+ if (enable_and_reset_display(port) == -1)
run = 0;
uint8_t prev_input = 0;
@@ -138,6 +138,6 @@
sp_close(port);
sp_free_port(port);
free(serial_buf);
-
+ SDL_Quit();
return 0;
}
--
⑨