* [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen
@ 2021-02-17 10:10 Patrick Rudolph
2021-02-18 3:32 ` 回复: [edk2-devel] " gaoliming
0 siblings, 1 reply; 5+ messages in thread
From: Patrick Rudolph @ 2021-02-17 10:10 UTC (permalink / raw)
To: devel; +Cc: tcrawford, jian.j.wang, hao.a.wu, zhichao.gao, ray.ni
From: Tim Crawford <tcrawford@system76.com>
Use Microsoft's recommended positioning [1] for the boot logo.
> We recommend that the logo is placed with its center at 38.2% from the
> screen's top edge. This positioning is based on the golden ratio's
> visual aesthetics and matches the Windows 10 design proportions.
[1]: https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/boot-screen-components#position-the-logo-during-post
Based on Tim Crawford <tcrawford@system76.com> initial commit.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
---
MdeModulePkg/Include/Protocol/PlatformLogo.h | 3 ++-
MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 4 ++++
MdeModulePkg/Logo/Logo.c | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/Include/Protocol/PlatformLogo.h b/MdeModulePkg/Include/Protocol/PlatformLogo.h
index 55c9e08696..21a4c79e1d 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 134660f28d..d40c65b59f 100644
--- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
+++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
@@ -173,6 +173,10 @@ BootLogoEnableLogo (
DestX = 0;
DestY = (SizeOfY - Image.Height) / 2;
break;
+ case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended:
+ DestX = (SizeOfX - Image.Width) / 2;
+ DestY = (SizeOfY * 382) / 1000 - Image.Height / 2;
+ break;
case EdkiiPlatformLogoDisplayAttributeCenter:
DestX = (SizeOfX - Image.Width) / 2;
DestY = (SizeOfY - Image.Height) / 2;
diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c
index c647253ecd..131a1b456a 100644
--- a/MdeModulePkg/Logo/Logo.c
+++ b/MdeModulePkg/Logo/Logo.c
@@ -26,7 +26,7 @@ EFI_HII_HANDLE mHiiHandle;
LOGO_ENTRY mLogos[] = {
{
IMAGE_TOKEN (IMG_LOGO),
- EdkiiPlatformLogoDisplayAttributeCenter,
+ EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended,
0,
0
}
--
2.26.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* 回复: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen
2021-02-17 10:10 [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen Patrick Rudolph
@ 2021-02-18 3:32 ` gaoliming
2021-02-18 12:43 ` Patrick Rudolph
0 siblings, 1 reply; 5+ messages in thread
From: gaoliming @ 2021-02-18 3:32 UTC (permalink / raw)
To: devel, patrick.rudolph
Cc: tcrawford, jian.j.wang, hao.a.wu, zhichao.gao, ray.ni
Patrick:
I am OK for this extension to meet with Microsoft recommendation. This
change is a new feature. Can you submit one BZ
(https://bugzilla.tianocore.org/) for it?
Thanks
Liming
> -----邮件原件-----
> 发件人: bounce+27952+71716+4905953+8761045@groups.io
> <bounce+27952+71716+4905953+8761045@groups.io> 代表 Patrick
> Rudolph
> 发送时间: 2021年2月17日 18:11
> 收件人: devel@edk2.groups.io
> 抄送: tcrawford@system76.com; jian.j.wang@intel.com;
> hao.a.wu@intel.com; zhichao.gao@intel.com; ray.ni@intel.com
> 主题: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib: Center
> logo 38.2% from top of screen
>
> From: Tim Crawford <tcrawford@system76.com>
>
> Use Microsoft's recommended positioning [1] for the boot logo.
>
> > We recommend that the logo is placed with its center at 38.2% from the
> > screen's top edge. This positioning is based on the golden ratio's
> > visual aesthetics and matches the Windows 10 design proportions.
>
> [1]:
> https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/boot-s
> creen-components#position-the-logo-during-post
>
> Based on Tim Crawford <tcrawford@system76.com> initial commit.
>
> Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
> ---
> MdeModulePkg/Include/Protocol/PlatformLogo.h | 3 ++-
> MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 4 ++++
> MdeModulePkg/Logo/Logo.c | 2 +-
> 3 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/MdeModulePkg/Include/Protocol/PlatformLogo.h
> b/MdeModulePkg/Include/Protocol/PlatformLogo.h
> index 55c9e08696..21a4c79e1d 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 134660f28d..d40c65b59f 100644
> --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> @@ -173,6 +173,10 @@ BootLogoEnableLogo (
> DestX = 0;
>
> DestY = (SizeOfY - Image.Height) / 2;
>
> break;
>
> + case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended:
>
> + DestX = (SizeOfX - Image.Width) / 2;
>
> + DestY = (SizeOfY * 382) / 1000 - Image.Height / 2;
>
> + break;
>
> case EdkiiPlatformLogoDisplayAttributeCenter:
>
> DestX = (SizeOfX - Image.Width) / 2;
>
> DestY = (SizeOfY - Image.Height) / 2;
>
> diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c
> index c647253ecd..131a1b456a 100644
> --- a/MdeModulePkg/Logo/Logo.c
> +++ b/MdeModulePkg/Logo/Logo.c
> @@ -26,7 +26,7 @@ EFI_HII_HANDLE mHiiHandle;
> LOGO_ENTRY mLogos[] = {
>
> {
>
> IMAGE_TOKEN (IMG_LOGO),
>
> - EdkiiPlatformLogoDisplayAttributeCenter,
>
> + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended,
>
> 0,
>
> 0
>
> }
>
> --
> 2.26.2
>
>
>
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#71716): https://edk2.groups.io/g/devel/message/71716
> Mute This Topic: https://groups.io/mt/80700289/4905953
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub
> [gaoliming@byosoft.com.cn]
> -=-=-=-=-=-=
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen
2021-02-18 3:32 ` 回复: [edk2-devel] " gaoliming
@ 2021-02-18 12:43 ` Patrick Rudolph
2021-02-22 3:30 ` Wu, Hao A
0 siblings, 1 reply; 5+ messages in thread
From: Patrick Rudolph @ 2021-02-18 12:43 UTC (permalink / raw)
To: gaoliming; +Cc: devel, tcrawford, Wang, Jian J, Wu, Hao A, zhichao.gao, Ni, Ray
Hi,
Please find the issue created here:
https://bugzilla.tianocore.org/show_bug.cgi?id=3226
On Thu, Feb 18, 2021 at 4:32 AM gaoliming <gaoliming@byosoft.com.cn> wrote:
>
> Patrick:
> I am OK for this extension to meet with Microsoft recommendation. This
> change is a new feature. Can you submit one BZ
> (https://bugzilla.tianocore.org/) for it?
>
> Thanks
> Liming
> > -----邮件原件-----
> > 发件人: bounce+27952+71716+4905953+8761045@groups.io
> > <bounce+27952+71716+4905953+8761045@groups.io> 代表 Patrick
> > Rudolph
> > 发送时间: 2021年2月17日 18:11
> > 收件人: devel@edk2.groups.io
> > 抄送: tcrawford@system76.com; jian.j.wang@intel.com;
> > hao.a.wu@intel.com; zhichao.gao@intel.com; ray.ni@intel.com
> > 主题: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib: Center
> > logo 38.2% from top of screen
> >
> > From: Tim Crawford <tcrawford@system76.com>
> >
> > Use Microsoft's recommended positioning [1] for the boot logo.
> >
> > > We recommend that the logo is placed with its center at 38.2% from the
> > > screen's top edge. This positioning is based on the golden ratio's
> > > visual aesthetics and matches the Windows 10 design proportions.
> >
> > [1]:
> > https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/boot-s
> > creen-components#position-the-logo-during-post
> >
> > Based on Tim Crawford <tcrawford@system76.com> initial commit.
> >
> > Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
> > ---
> > MdeModulePkg/Include/Protocol/PlatformLogo.h | 3 ++-
> > MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 4 ++++
> > MdeModulePkg/Logo/Logo.c | 2 +-
> > 3 files changed, 7 insertions(+), 2 deletions(-)
> >
> > diff --git a/MdeModulePkg/Include/Protocol/PlatformLogo.h
> > b/MdeModulePkg/Include/Protocol/PlatformLogo.h
> > index 55c9e08696..21a4c79e1d 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 134660f28d..d40c65b59f 100644
> > --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> > +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> > @@ -173,6 +173,10 @@ BootLogoEnableLogo (
> > DestX = 0;
> >
> > DestY = (SizeOfY - Image.Height) / 2;
> >
> > break;
> >
> > + case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended:
> >
> > + DestX = (SizeOfX - Image.Width) / 2;
> >
> > + DestY = (SizeOfY * 382) / 1000 - Image.Height / 2;
> >
> > + break;
> >
> > case EdkiiPlatformLogoDisplayAttributeCenter:
> >
> > DestX = (SizeOfX - Image.Width) / 2;
> >
> > DestY = (SizeOfY - Image.Height) / 2;
> >
> > diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c
> > index c647253ecd..131a1b456a 100644
> > --- a/MdeModulePkg/Logo/Logo.c
> > +++ b/MdeModulePkg/Logo/Logo.c
> > @@ -26,7 +26,7 @@ EFI_HII_HANDLE mHiiHandle;
> > LOGO_ENTRY mLogos[] = {
> >
> > {
> >
> > IMAGE_TOKEN (IMG_LOGO),
> >
> > - EdkiiPlatformLogoDisplayAttributeCenter,
> >
> > + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended,
> >
> > 0,
> >
> > 0
> >
> > }
> >
> > --
> > 2.26.2
> >
> >
> >
> > -=-=-=-=-=-=
> > Groups.io Links: You receive all messages sent to this group.
> > View/Reply Online (#71716): https://edk2.groups.io/g/devel/message/71716
> > Mute This Topic: https://groups.io/mt/80700289/4905953
> > Group Owner: devel+owner@edk2.groups.io
> > Unsubscribe: https://edk2.groups.io/g/devel/unsub
> > [gaoliming@byosoft.com.cn]
> > -=-=-=-=-=-=
> >
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen
2021-02-18 12:43 ` Patrick Rudolph
@ 2021-02-22 3:30 ` Wu, Hao A
2021-02-22 8:40 ` Ni, Ray
0 siblings, 1 reply; 5+ messages in thread
From: Wu, Hao A @ 2021-02-22 3:30 UTC (permalink / raw)
To: Patrick Rudolph, gaoliming
Cc: devel@edk2.groups.io, tcrawford@system76.com, Wang, Jian J,
Gao, Zhichao, Ni, Ray
> -----Original Message-----
> From: Patrick Rudolph <patrick.rudolph@9elements.com>
> Sent: Thursday, February 18, 2021 8:43 PM
> To: gaoliming <gaoliming@byosoft.com.cn>
> Cc: devel@edk2.groups.io; tcrawford@system76.com; Wang, Jian J
> <jian.j.wang@intel.com>; Wu, Hao A <hao.a.wu@intel.com>; Gao, Zhichao
> <zhichao.gao@intel.com>; Ni, Ray <ray.ni@intel.com>
> Subject: Re: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib:
> Center logo 38.2% from top of screen
>
> Hi,
> Please find the issue created here:
> https://bugzilla.tianocore.org/show_bug.cgi?id=3226
Hello Patrick,
Could you help to send an updated version of the patch to include the above BZ tracker information in the commit log message?
Thanks in advance.
Best Regards,
Hao Wu
>
> On Thu, Feb 18, 2021 at 4:32 AM gaoliming <gaoliming@byosoft.com.cn>
> wrote:
> >
> > Patrick:
> > I am OK for this extension to meet with Microsoft recommendation.
> > This change is a new feature. Can you submit one BZ
> > (https://bugzilla.tianocore.org/) for it?
> >
> > Thanks
> > Liming
> > > -----邮件原件-----
> > > 发件人: bounce+27952+71716+4905953+8761045@groups.io
> > > <bounce+27952+71716+4905953+8761045@groups.io> 代表 Patrick
> Rudolph
> > > 发送时间: 2021年2月17日 18:11
> > > 收件人: devel@edk2.groups.io
> > > 抄送: tcrawford@system76.com; jian.j.wang@intel.com;
> > > hao.a.wu@intel.com; zhichao.gao@intel.com; ray.ni@intel.com
> > > 主题: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib:
> Center
> > > logo 38.2% from top of screen
> > >
> > > From: Tim Crawford <tcrawford@system76.com>
> > >
> > > Use Microsoft's recommended positioning [1] for the boot logo.
> > >
> > > > We recommend that the logo is placed with its center at 38.2% from
> > > > the screen's top edge. This positioning is based on the golden
> > > > ratio's visual aesthetics and matches the Windows 10 design
> proportions.
> > >
> > > [1]:
> > > https://docs.microsoft.com/en-us/windows-
> hardware/drivers/bringup/bo
> > > ot-s creen-components#position-the-logo-during-post
> > >
> > > Based on Tim Crawford <tcrawford@system76.com> initial commit.
> > >
> > > Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
> > > ---
> > > MdeModulePkg/Include/Protocol/PlatformLogo.h | 3 ++-
> > > MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 4 ++++
> > > MdeModulePkg/Logo/Logo.c | 2 +-
> > > 3 files changed, 7 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/MdeModulePkg/Include/Protocol/PlatformLogo.h
> > > b/MdeModulePkg/Include/Protocol/PlatformLogo.h
> > > index 55c9e08696..21a4c79e1d 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 134660f28d..d40c65b59f 100644
> > > --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> > > +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> > > @@ -173,6 +173,10 @@ BootLogoEnableLogo (
> > > DestX = 0;
> > >
> > > DestY = (SizeOfY - Image.Height) / 2;
> > >
> > > break;
> > >
> > > + case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended:
> > >
> > > + DestX = (SizeOfX - Image.Width) / 2;
> > >
> > > + DestY = (SizeOfY * 382) / 1000 - Image.Height / 2;
> > >
> > > + break;
> > >
> > > case EdkiiPlatformLogoDisplayAttributeCenter:
> > >
> > > DestX = (SizeOfX - Image.Width) / 2;
> > >
> > > DestY = (SizeOfY - Image.Height) / 2;
> > >
> > > diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c
> > > index c647253ecd..131a1b456a 100644
> > > --- a/MdeModulePkg/Logo/Logo.c
> > > +++ b/MdeModulePkg/Logo/Logo.c
> > > @@ -26,7 +26,7 @@ EFI_HII_HANDLE mHiiHandle;
> > > LOGO_ENTRY mLogos[] = {
> > >
> > > {
> > >
> > > IMAGE_TOKEN (IMG_LOGO),
> > >
> > > - EdkiiPlatformLogoDisplayAttributeCenter,
> > >
> > > + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended,
> > >
> > > 0,
> > >
> > > 0
> > >
> > > }
> > >
> > > --
> > > 2.26.2
> > >
> > >
> > >
> > > -=-=-=-=-=-=
> > > Groups.io Links: You receive all messages sent to this group.
> > > View/Reply Online (#71716):
> > > https://edk2.groups.io/g/devel/message/71716
> > > Mute This Topic: https://groups.io/mt/80700289/4905953
> > > Group Owner: devel+owner@edk2.groups.io
> > > Unsubscribe: https://edk2.groups.io/g/devel/unsub
> > > [gaoliming@byosoft.com.cn]
> > > -=-=-=-=-=-=
> > >
> >
> >
> >
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen
2021-02-22 3:30 ` Wu, Hao A
@ 2021-02-22 8:40 ` Ni, Ray
0 siblings, 0 replies; 5+ messages in thread
From: Ni, Ray @ 2021-02-22 8:40 UTC (permalink / raw)
To: Wu, Hao A, Patrick Rudolph, gaoliming
Cc: devel@edk2.groups.io, tcrawford@system76.com, Wang, Jian J,
Gao, Zhichao
I have considered the needs of EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended when designing
the BootLogoLib.
The answer was no.
And reason is we can always return a different OffsetY to make sure the logo is in vertical 38.2% position.
//
// Center of LOGO is in the vertical position 38.2% when PcdBootLogoOnlyEnable is TRUE
// Y = (VerticalResolution - LogoHeight) / 2
// Y' = VerticalResolution * 0.382 - LogoHeight * 0.5
// OffsetY + Y = Y'
// OffsetY = Y' - Y = -0.118 * VerticalResolution
//
*Attribute = EdkiiPlatformLogoDisplayAttributeCenter;
*OffsetX = 0;
*OffsetY = -118 * (INTN) GraphicsOutput->Mode->Info->VerticalResolution / 1000;
> -----Original Message-----
> From: Wu, Hao A <hao.a.wu@intel.com>
> Sent: Monday, February 22, 2021 11:30 AM
> To: Patrick Rudolph <patrick.rudolph@9elements.com>; gaoliming
> <gaoliming@byosoft.com.cn>
> Cc: devel@edk2.groups.io; tcrawford@system76.com; Wang, Jian J
> <jian.j.wang@intel.com>; Gao, Zhichao <zhichao.gao@intel.com>; Ni, Ray
> <ray.ni@intel.com>
> Subject: RE: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib:
> Center logo 38.2% from top of screen
>
> > -----Original Message-----
> > From: Patrick Rudolph <patrick.rudolph@9elements.com>
> > Sent: Thursday, February 18, 2021 8:43 PM
> > To: gaoliming <gaoliming@byosoft.com.cn>
> > Cc: devel@edk2.groups.io; tcrawford@system76.com; Wang, Jian J
> > <jian.j.wang@intel.com>; Wu, Hao A <hao.a.wu@intel.com>; Gao, Zhichao
> > <zhichao.gao@intel.com>; Ni, Ray <ray.ni@intel.com>
> > Subject: Re: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib:
> > Center logo 38.2% from top of screen
> >
> > Hi,
> > Please find the issue created here:
> > https://bugzilla.tianocore.org/show_bug.cgi?id=3226
>
>
> Hello Patrick,
>
> Could you help to send an updated version of the patch to include the above
> BZ tracker information in the commit log message?
> Thanks in advance.
>
> Best Regards,
> Hao Wu
>
>
> >
> > On Thu, Feb 18, 2021 at 4:32 AM gaoliming <gaoliming@byosoft.com.cn>
> > wrote:
> > >
> > > Patrick:
> > > I am OK for this extension to meet with Microsoft recommendation.
> > > This change is a new feature. Can you submit one BZ
> > > (https://bugzilla.tianocore.org/) for it?
> > >
> > > Thanks
> > > Liming
> > > > -----邮件原件-----
> > > > 发件人: bounce+27952+71716+4905953+8761045@groups.io
> > > > <bounce+27952+71716+4905953+8761045@groups.io> 代表 Patrick
> > Rudolph
> > > > 发送时间: 2021年2月17日 18:11
> > > > 收件人: devel@edk2.groups.io
> > > > 抄送: tcrawford@system76.com; jian.j.wang@intel.com;
> > > > hao.a.wu@intel.com; zhichao.gao@intel.com; ray.ni@intel.com
> > > > 主题: [edk2-devel] [PATCH - resend] MdeModulePkg/BootLogoLib:
> > Center
> > > > logo 38.2% from top of screen
> > > >
> > > > From: Tim Crawford <tcrawford@system76.com>
> > > >
> > > > Use Microsoft's recommended positioning [1] for the boot logo.
> > > >
> > > > > We recommend that the logo is placed with its center at 38.2% from
> > > > > the screen's top edge. This positioning is based on the golden
> > > > > ratio's visual aesthetics and matches the Windows 10 design
> > proportions.
> > > >
> > > > [1]:
> > > > https://docs.microsoft.com/en-us/windows-
> > hardware/drivers/bringup/bo
> > > > ot-s creen-components#position-the-logo-during-post
> > > >
> > > > Based on Tim Crawford <tcrawford@system76.com> initial commit.
> > > >
> > > > Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
> > > > ---
> > > > MdeModulePkg/Include/Protocol/PlatformLogo.h | 3 ++-
> > > > MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 4 ++++
> > > > MdeModulePkg/Logo/Logo.c | 2 +-
> > > > 3 files changed, 7 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git a/MdeModulePkg/Include/Protocol/PlatformLogo.h
> > > > b/MdeModulePkg/Include/Protocol/PlatformLogo.h
> > > > index 55c9e08696..21a4c79e1d 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 134660f28d..d40c65b59f 100644
> > > > --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> > > > +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c
> > > > @@ -173,6 +173,10 @@ BootLogoEnableLogo (
> > > > DestX = 0;
> > > >
> > > > DestY = (SizeOfY - Image.Height) / 2;
> > > >
> > > > break;
> > > >
> > > > + case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended:
> > > >
> > > > + DestX = (SizeOfX - Image.Width) / 2;
> > > >
> > > > + DestY = (SizeOfY * 382) / 1000 - Image.Height / 2;
> > > >
> > > > + break;
> > > >
> > > > case EdkiiPlatformLogoDisplayAttributeCenter:
> > > >
> > > > DestX = (SizeOfX - Image.Width) / 2;
> > > >
> > > > DestY = (SizeOfY - Image.Height) / 2;
> > > >
> > > > diff --git a/MdeModulePkg/Logo/Logo.c
> b/MdeModulePkg/Logo/Logo.c
> > > > index c647253ecd..131a1b456a 100644
> > > > --- a/MdeModulePkg/Logo/Logo.c
> > > > +++ b/MdeModulePkg/Logo/Logo.c
> > > > @@ -26,7 +26,7 @@ EFI_HII_HANDLE mHiiHandle;
> > > > LOGO_ENTRY mLogos[] = {
> > > >
> > > > {
> > > >
> > > > IMAGE_TOKEN (IMG_LOGO),
> > > >
> > > > - EdkiiPlatformLogoDisplayAttributeCenter,
> > > >
> > > > + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended,
> > > >
> > > > 0,
> > > >
> > > > 0
> > > >
> > > > }
> > > >
> > > > --
> > > > 2.26.2
> > > >
> > > >
> > > >
> > > > -=-=-=-=-=-=
> > > > Groups.io Links: You receive all messages sent to this group.
> > > > View/Reply Online (#71716):
> > > > https://edk2.groups.io/g/devel/message/71716
> > > > Mute This Topic: https://groups.io/mt/80700289/4905953
> > > > Group Owner: devel+owner@edk2.groups.io
> > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub
> > > > [gaoliming@byosoft.com.cn]
> > > > -=-=-=-=-=-=
> > > >
> > >
> > >
> > >
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-02-22 8:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-17 10:10 [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen Patrick Rudolph
2021-02-18 3:32 ` 回复: [edk2-devel] " gaoliming
2021-02-18 12:43 ` Patrick Rudolph
2021-02-22 3:30 ` Wu, Hao A
2021-02-22 8:40 ` Ni, Ray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox