From 06abcd6c79ca75d1bff06ccef168d894b8016414 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sat, 10 Feb 2024 07:09:15 +0200 Subject: [PATCH] Add CrashFont initialization --- core/crash/crash_handler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/crash/crash_handler.cpp b/core/crash/crash_handler.cpp index 0f49f28..655a308 100644 --- a/core/crash/crash_handler.cpp +++ b/core/crash/crash_handler.cpp @@ -50,10 +50,11 @@ namespace CrashHandler static bool ExceptionOccurred = false; int SBIdx = 255; CrashKeyboardDriver *kbd; + Video::Font *CrashFont = nullptr; nsa void printfWrapper(char c, void *unused) { - Display->Print(c, nullptr, true); + Display->Print(c, CrashFont, true); UNUSED(unused); } @@ -1430,6 +1431,7 @@ namespace CrashHandler if (Config.InterruptsOnCrash) { + CrashFont = new Video::Font(&_binary_files_tamsyn_font_1_11_Tamsyn8x15b_psf_start, &_binary_files_tamsyn_font_1_11_Tamsyn8x15b_psf_end, Video::FontType::PCScreenFont2); DisplayTopOverlay(); DisplayMainScreen(crashdata); Display->UpdateBuffer();