MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / egClearScreen

Function egClearScreen

rEFIt_UEFI/libeg/libscreen.cpp:514–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512//
513
514VOID egClearScreen(IN const void *Color)
515{
516 EFI_GRAPHICS_OUTPUT_BLT_PIXEL FillColor = *(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *)Color;
517 if (!egHasGraphics)
518 return;
519
520 if (GraphicsOutput != NULL) {
521 // EFI_GRAPHICS_OUTPUT_BLT_PIXEL and EFI_UGA_PIXEL have the same
522 // layout, and the header from TianoCore actually defines them
523 // to be the same type.
524 GraphicsOutput->Blt(GraphicsOutput, &FillColor, EfiBltVideoFill,
525 0, 0, 0, 0, egScreenWidth, egScreenHeight, 0);
526 } else if (UgaDraw != NULL) {
527 UgaDraw->Blt(UgaDraw, (EFI_UGA_PIXEL*)&FillColor, EfiUgaVideoFill,
528 0, 0, 0, 0, egScreenWidth, egScreenHeight, 0);
529 }
530}
531
532//
533// Make a screenshot

Callers 4

StartLoaderMethod · 0.85
StartLegacyMethod · 0.85
StartToolMethod · 0.85
InitBootScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected