Reviewed-by: Liming Gao <[email protected]> > -----邮件原件----- > 发件人: Sean Rhodes <[email protected]> > 发送时间: 2022年9月26日 16:10 > 收件人: [email protected] > 抄送: Sean Rhodes <[email protected]>; Zhichao Gao > <[email protected]>; Ray Ni <[email protected]>; Jian J Wang > <[email protected]>; Liming Gao <[email protected]> > 主题: [PATCH 1/3] MdeModulePkg/BootLogoLib: Add option to follow > Microsoft Recommendations > > Add an option to position the logo 38.2% from the top of the screen, > which follows the recommendations from Microsoft. These can be found > here: > https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/boot-s > creen-components > > Cc: Zhichao Gao <[email protected]> > Cc: Ray Ni <[email protected]> > Cc: Jian J Wang <[email protected]> > Cc: Liming Gao <[email protected]> > Signed-off-by: Sean Rhodes <[email protected]> > --- > MdeModulePkg/Include/Protocol/PlatformLogo.h | 3 ++- > MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 7 ++++--- > 2 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/MdeModulePkg/Include/Protocol/PlatformLogo.h > b/MdeModulePkg/Include/Protocol/PlatformLogo.h > index 08e1dc35a4..b24d7d5b79 100644 > --- a/MdeModulePkg/Include/Protocol/PlatformLogo.h > +++ b/MdeModulePkg/Include/Protocol/PlatformLogo.h > @@ -29,7 +29,8 @@ typedef enum { > EdkiiPlatformLogoDisplayAttributeCenterBottom, > > EdkiiPlatformLogoDisplayAttributeLeftBottom, > > EdkiiPlatformLogoDisplayAttributeCenterLeft, > > - EdkiiPlatformLogoDisplayAttributeCenter > > + EdkiiPlatformLogoDisplayAttributeCenter, > > + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended > > } EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE; > > > > /** > > diff --git a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c > b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c > index 478ec2d40e..9065e5281b 100644 > --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c > +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c > @@ -169,7 +169,6 @@ BootLogoEnableLogo ( > DestX = SizeOfX - Image.Width; > > DestY = 0; > > break; > > - > > case EdkiiPlatformLogoDisplayAttributeCenterLeft: > > DestX = 0; > > DestY = (SizeOfY - Image.Height) / 2; > > @@ -182,7 +181,6 @@ BootLogoEnableLogo ( > DestX = SizeOfX - Image.Width; > > DestY = (SizeOfY - Image.Height) / 2; > > break; > > - > > case EdkiiPlatformLogoDisplayAttributeLeftBottom: > > DestX = 0; > > DestY = SizeOfY - Image.Height; > > @@ -195,7 +193,10 @@ BootLogoEnableLogo ( > DestX = SizeOfX - Image.Width; > > DestY = SizeOfY - Image.Height; > > break; > > - > > + case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended: > > + DestX = (SizeOfX - Image.Width) / 2; > > + DestY = (SizeOfY * 382) / 1000 - Image.Height / 2; > > + break; > > default: > > ASSERT (FALSE); > > continue; > > -- > 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94828): https://edk2.groups.io/g/devel/message/94828 Mute This Topic: https://groups.io/mt/94193217/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
