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;
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
BootVidClear(ULONG Color)
|
||||
{
|
||||
ULONG *Ptr;
|
||||
|
||||
Ptr = Framebuffer.Address;
|
||||
for (USIZE Idx = 0; Idx < Framebuffer.Height * Framebuffer.Pitch; ++Idx) {
|
||||
Ptr[Idx] = Color;
|
||||
}
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
BootVidConsEn(VOID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user