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 <matt.devillier@gmail.com>
This commit is contained in:
Matt DeVillier
2019-02-21 20:15:40 -06:00
parent 31a4e13c19
commit 51be9d0425

View File

@ -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: