mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Add CrashFont initialization
This commit is contained in:
parent
174df62d85
commit
06abcd6c79
@ -50,10 +50,11 @@ namespace CrashHandler
|
|||||||
static bool ExceptionOccurred = false;
|
static bool ExceptionOccurred = false;
|
||||||
int SBIdx = 255;
|
int SBIdx = 255;
|
||||||
CrashKeyboardDriver *kbd;
|
CrashKeyboardDriver *kbd;
|
||||||
|
Video::Font *CrashFont = nullptr;
|
||||||
|
|
||||||
nsa void printfWrapper(char c, void *unused)
|
nsa void printfWrapper(char c, void *unused)
|
||||||
{
|
{
|
||||||
Display->Print(c, nullptr, true);
|
Display->Print(c, CrashFont, true);
|
||||||
UNUSED(unused);
|
UNUSED(unused);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1430,6 +1431,7 @@ namespace CrashHandler
|
|||||||
|
|
||||||
if (Config.InterruptsOnCrash)
|
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();
|
DisplayTopOverlay();
|
||||||
DisplayMainScreen(crashdata);
|
DisplayMainScreen(crashdata);
|
||||||
Display->UpdateBuffer();
|
Display->UpdateBuffer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user