aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-09 14:28:20 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-09 14:28:20 +0100
commit9ff574061910f9562ccf4b2f6a21dda66e2a3f08 (patch)
tree07ce267287ddbe6721a6e4fbc5c17e19f316e089
parent7458f7169143547e072ecd068501309fdd39ebf3 (diff)
downloadgold-mine-run-9ff574061910f9562ccf4b2f6a21dda66e2a3f08.tar.gz
gold-mine-run-9ff574061910f9562ccf4b2f6a21dda66e2a3f08.zip
Erase the screen before going back to mode 3
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 72847f3..5cdcb1b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -97,6 +97,10 @@ int main(int argc, char *argv[])
while (run_menu())
run_game();
+ blit_target(TARGET_SCREEN);
+ wait_vsync();
+ blit_erase(0);
+
set_mode(3);
close_framebuffer();