| 512 | // |
| 513 | |
| 514 | VOID 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 |
no outgoing calls
no test coverage detected