From 9dbe40704dfa6a6c2a12b261557ef50f24d4d174 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 5 Nov 2022 04:25:07 +0200 Subject: [PATCH] If a wrong color is specified, set the color value to 0xFFFFFF --- Core/Video/Display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Video/Display.cpp b/Core/Video/Display.cpp index fb5a5d6..81d3d4d 100644 --- a/Core/Video/Display.cpp +++ b/Core/Video/Display.cpp @@ -25,7 +25,7 @@ namespace Video else if (Char >= 'A' && Char <= 'F') this->Buffers[Index]->Color = (this->Buffers[Index]->Color << 4) | (Char - 'A' + 10); else - this->Buffers[Index]->Color = 0; + this->Buffers[Index]->Color = 0xFFFFFF; if (WriteToUART) UniversalAsynchronousReceiverTransmitter::UART(UniversalAsynchronousReceiverTransmitter::COM1).Write(Char); this->ColorPickerIteration++;