Added DrawString in Display

This commit is contained in:
Alex
2022-12-26 08:40:34 +02:00
parent 18f05c6d83
commit c0a3d3dd24
2 changed files with 15 additions and 5 deletions

View File

@ -160,6 +160,15 @@ namespace Video
return Char;
}
void Display::DrawString(const char *String, uint32_t X, uint32_t Y, int Index, bool WriteToUART)
{
this->Buffers[Index]->CursorX = X;
this->Buffers[Index]->CursorY = Y;
for (int i = 0; String[i] != '\0'; i++)
this->Print(String[i], Index, WriteToUART);
}
Display::Display(BootInfo::FramebufferInfo Info, bool LoadDefaultFont)
{
this->framebuffer = Info;