mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-17 02:01:42 +00:00
If a wrong color is specified, set the color value to 0xFFFFFF
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Video
|
|||||||
else if (Char >= 'A' && Char <= 'F')
|
else if (Char >= 'A' && Char <= 'F')
|
||||||
this->Buffers[Index]->Color = (this->Buffers[Index]->Color << 4) | (Char - 'A' + 10);
|
this->Buffers[Index]->Color = (this->Buffers[Index]->Color << 4) | (Char - 'A' + 10);
|
||||||
else
|
else
|
||||||
this->Buffers[Index]->Color = 0;
|
this->Buffers[Index]->Color = 0xFFFFFF;
|
||||||
if (WriteToUART)
|
if (WriteToUART)
|
||||||
UniversalAsynchronousReceiverTransmitter::UART(UniversalAsynchronousReceiverTransmitter::COM1).Write(Char);
|
UniversalAsynchronousReceiverTransmitter::UART(UniversalAsynchronousReceiverTransmitter::COM1).Write(Char);
|
||||||
this->ColorPickerIteration++;
|
this->ColorPickerIteration++;
|
||||||
|
Reference in New Issue
Block a user