if (!EFI_ERROR(Status))
return FALSE;
-// StatusToString(ErrorName, Status);
gST->ConOut->SetAttribute (gST->ConOut, ATTR_ERROR);
Print(L"Fatal Error: %r %s\n", Status, where);
gST->ConOut->SetAttribute (gST->ConOut, ATTR_BASIC);
BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where)
{
-// CHAR16 ErrorName[64];
-
if (!EFI_ERROR(Status))
return FALSE;
-// StatusToString(ErrorName, Status);
gST->ConOut->SetAttribute (gST->ConOut, ATTR_ERROR);
Print(L"Error: %r %s\n", Status, where);
gST->ConOut->SetAttribute (gST->ConOut, ATTR_BASIC);
egClearScreen(&MenuBackgroundPixel);
if (Banner != NULL) {
BannerPosX = (Banner->Width < UGAWidth) ? ((UGAWidth - Banner->Width) / 2) : 0;
- BannerPosY = (ComputeRow0PosX() / 2) - Banner->Height;
-// BannerPosY = ComputeRow0PosX() - Banner->Height - LAYOUT_BANNER_YGAP;
+ BannerPosY = (INTN) (ComputeRow0PosY() / 2) - (INTN) Banner->Height;
if (BannerPosY < 0)
BannerPosY = 0;
+ GlobalConfig.BannerBottomEdge = BannerPosY + Banner->Height;
BltImage(Banner, (UINTN) BannerPosX, (UINTN) BannerPosY);
}
GraphicsScreenDirty = FALSE;
egFreeImage(GlobalConfig.ScreenBackground);
GlobalConfig.ScreenBackground = egCopyScreen();
-}
+} /* VOID BltClearScreen() */
VOID BltImage(IN EG_IMAGE *Image, IN UINTN XPos, IN UINTN YPos)
{
}
// blit to screen and clean up
- egDrawImage(CompImage, XPos, YPos);
+ if (CompImage->HasAlpha)
+ egDrawImageWithTransparency(CompImage, NULL, XPos, YPos, CompImage->Width, CompImage->Height);
+ else
+ egDrawImage(CompImage, XPos, YPos);
egFreeImage(CompImage);
GraphicsScreenDirty = TRUE;
}