(ScreenPosX > egScreenWidth) || (ScreenPosY > egScreenHeight))
return;
-// if (Image->HasAlpha) {
-// Image->HasAlpha = FALSE;
-// egSetPlane(PLPTR(Image, a), 0, Image->Width * Image->Height);
-// }
-
if ((GlobalConfig.ScreenBackground == NULL) || ((Image->Width == egScreenWidth) && (Image->Height == egScreenHeight))) {
CompImage = Image;
} else if (GlobalConfig.ScreenBackground == Image) {
if (AreaWidth == 0)
return;
-// if (Image->HasAlpha) {
-// Image->HasAlpha = FALSE;
-// egSetPlane(PLPTR(Image, a), 0, Image->Width * Image->Height);
-// }
-
if (GraphicsOutput != NULL) {
refit_call10_wrapper(GraphicsOutput->Blt, GraphicsOutput, (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *)Image->PixelData,
EfiBltBufferToVideo, AreaPosX, AreaPosY, ScreenPosX, ScreenPosY, AreaWidth, AreaHeight,
BoxWidth = egScreenWidth;
BoxHeight = 2 * FONT_CELL_HEIGHT;
Box = egCreateFilledImage(BoxWidth, BoxHeight, FALSE, BGColor);
- egRenderText(Text, Box, FONT_CELL_WIDTH, FONT_CELL_HEIGHT / 2);
+ egRenderText(Text, Box, FONT_CELL_WIDTH, FONT_CELL_HEIGHT / 2, (BGColor->r + BGColor->g + BGColor->b) / 3);
egDrawImage(Box, (egScreenWidth - BoxWidth) / 2, (egScreenHeight - BoxHeight) / 2);
} // if non-NULL inputs
} // VOID egDisplayMessage()