drivers: bootvid: Add BootVidClear() helper

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-23 02:35:30 +00:00
parent 1df447c91d
commit 21aef3e436
2 changed files with 20 additions and 0 deletions
+12
View File
@@ -106,6 +106,18 @@ BootVidDeInitCons(VOID)
BootConsEnabled = false; BootConsEnabled = false;
} }
VOID
BootVidClear(ULONG Color)
{
ULONG *Ptr;
Ptr = Framebuffer.Address;
for (USIZE Idx = 0; Idx < Framebuffer.Height * Framebuffer.Pitch; ++Idx) {
Ptr[Idx] = Color;
}
}
BOOLEAN BOOLEAN
BootVidConsEn(VOID) BootVidConsEn(VOID)
{ {
+8
View File
@@ -47,6 +47,14 @@ VOID BootVidDeInitCons(VOID);
*/ */
VOID BootVidConsWrite(const CHAR *String, USIZE Length); VOID BootVidConsWrite(const CHAR *String, USIZE Length);
/*
* Clear the screen with a background color
*
* @Color: Color to fill
*/
VOID BootVidClear(ULONG Color);
/* /*
* Returns true if the boot console is enabled * Returns true if the boot console is enabled
*/ */