From 51be9d0425cf9c4d1f398e7b730e797ccd45e410 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Thu, 21 Feb 2019 20:15:40 -0600 Subject: [PATCH] BdsConsole: fix up boot logo positioning No reason to hardcode the image size into the positon calculations. Keep shift to upper 2/3 of screen. Signed-off-by: Matt DeVillier --- IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c index 0e0c34de0a..ecdd29d909 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c @@ -861,8 +861,8 @@ EnableQuietBoot ( break; case EfiBadgingDisplayAttributeCenter: - DestX = (GraphicsOutput->Mode->Info->HorizontalResolution - 224)/2; - DestY = (GraphicsOutput->Mode->Info->VerticalResolution * 2/3 - 180)/2; + DestX = (SizeOfX - Width) / 2; + DestY = ((SizeOfY * 2 / 3) - Height) / 2; break; case EfiBadgingDisplayAttributeCustomized: