mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
If a wrong color is specified, set the color value to 0xFFFFFF
This commit is contained in:
parent
4af2b199f4
commit
9dbe40704d
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user