From 8c132ccf9adb69d625b976e5b94bdc7da7f1f1f9 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 30 Dec 2021 14:46:42 +0100 Subject: [PATCH] Add missing OSScreenShutdown call --- source/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index caacd82..652768b 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -343,14 +343,16 @@ int32_t handleMenuScreen(int32_t autobootOptionInput) { DrawUtils::clear(COLOR_BLACK); DrawUtils::endDraw(); + DrawUtils::deinitFont(); + + OSScreenShutdown(); + + free(screenBuffer); + if (autoboot != autobootOptionInput) { writeAutobootOption(autoboot); } - DrawUtils::deinitFont(); - - free(screenBuffer); - return selected; }