mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Simplify Display::Print
This commit is contained in:
parent
6094c966b2
commit
6db0df6afe
@ -360,15 +360,18 @@ namespace Video
|
|||||||
{
|
{
|
||||||
// if (this->CurrentFont->PSF2Font->GlyphBuffer == (uint16_t *)0x01) // HAS UNICODE TABLE
|
// if (this->CurrentFont->PSF2Font->GlyphBuffer == (uint16_t *)0x01) // HAS UNICODE TABLE
|
||||||
// Char = this->CurrentFont->PSF2Font->GlyphBuffer[Char];
|
// Char = this->CurrentFont->PSF2Font->GlyphBuffer[Char];
|
||||||
int BytesPerLine = (this->CurrentFont->GetInfo().PSF2Font->Header->width + 7) / 8;
|
|
||||||
char *FontAddress = (char *)this->CurrentFont->GetInfo().StartAddress;
|
FontInfo fInfo = this->CurrentFont->GetInfo();
|
||||||
uint32_t FontHeaderSize = this->CurrentFont->GetInfo().PSF2Font->Header->headersize;
|
|
||||||
uint32_t FontCharSize = this->CurrentFont->GetInfo().PSF2Font->Header->charsize;
|
int BytesPerLine = (fInfo.PSF2Font->Header->width + 7) / 8;
|
||||||
uint32_t FontLength = this->CurrentFont->GetInfo().PSF2Font->Header->length;
|
char *FontAddress = (char *)fInfo.StartAddress;
|
||||||
|
uint32_t FontHeaderSize = fInfo.PSF2Font->Header->headersize;
|
||||||
|
uint32_t FontCharSize = fInfo.PSF2Font->Header->charsize;
|
||||||
|
uint32_t FontLength = fInfo.PSF2Font->Header->length;
|
||||||
char *FontPtr = FontAddress + FontHeaderSize + (Char > 0 && (uint32_t)Char < FontLength ? Char : 0) * FontCharSize;
|
char *FontPtr = FontAddress + FontHeaderSize + (Char > 0 && (uint32_t)Char < FontLength ? Char : 0) * FontCharSize;
|
||||||
|
|
||||||
uint32_t FontHdrWidth = this->CurrentFont->GetInfo().PSF2Font->Header->width;
|
uint32_t FontHdrWidth = fInfo.PSF2Font->Header->width;
|
||||||
uint32_t FontHdrHeight = this->CurrentFont->GetInfo().PSF2Font->Header->height;
|
uint32_t FontHdrHeight = fInfo.PSF2Font->Header->height;
|
||||||
|
|
||||||
for (size_t Y = this->Buffers[Index].CursorY; Y < this->Buffers[Index].CursorY + FontHdrHeight; Y++)
|
for (size_t Y = this->Buffers[Index].CursorY; Y < this->Buffers[Index].CursorY + FontHdrHeight; Y++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user