drivers: bootvid: Add BootVidClear() helper
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user