From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mx.groups.io with SMTP id smtpd.web09.5567.1613556637374135189 for ; Wed, 17 Feb 2021 02:10:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=e8c2GlYO; spf=pass (domain: 9elements.com, ip: 209.85.218.43, mailfrom: patrick.rudolph@9elements.com) Received: by mail-ej1-f43.google.com with SMTP id b14so15158341eju.7 for ; Wed, 17 Feb 2021 02:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hNUn/zj+P64g/ZIFuXwJ/cs1nR1OSrvOJLcP0SKgXCg=; b=e8c2GlYORGfxdTqwOSuk/8dpTzjm0zFObHOaypB8nP07W9UzIJyMLLgx1fkAKtTe3c d+L3Ly91c6hLXDqDrqQejCFZt1KSSN1v2Y92gGN76QAlOcq0w2Zp3ZRUoeSWDYROYUht VN3BeHQsAoKQ0nvL1FeDOMbe9QTokHap2RbeR272ueqT+qAirBgeGygGKpZnd2grKenp 1xHJAS45/sMm8CRg3wYHSHo99gYgta2JKTSmIi+24uIMcUYu6F+hvuLT0B3Id/+6ZFbz i6v0Xyx7t+YrwUIFDl5d3nnlVDtydHKydn4VMsaJqY8qpgFm5VY9R291qYvL0hcs9mJk /TbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hNUn/zj+P64g/ZIFuXwJ/cs1nR1OSrvOJLcP0SKgXCg=; b=PTO5/JVp8FDXNoQb+akgFoZrvstyg0UirEpeeKwOifyvlJc4FlBtagam2tIsAHqfPP gKZ281A+6vUKUaHt7Uffp/U1vs9v4OJ7kkmydmnFzXV81N5TBtpw3S42zzCpxQ2Sr5NJ DCrGM4/Vla8XLEd5u609/y39Q8IOeU6q/zyHk1mQDi9VmqEDHbOehGJjzXc9+TSDBbsH NNdHkptOqJ0CI3Z/421/WPwcilkEMl+Nc59Cx5Qrl9EqQOnSu96CH4GCvLde3mDqE5OB QettLULcYA1Kryx5ASLvYHFugqhF/xn/yqU2n1vDEFYcqc79vYEnqW4hrQsCi8kxWrhi Nu8g== X-Gm-Message-State: AOAM532tFt4ABt39DeIOUMrqghEIcShLH4gtnPVUNNKTRVQYwz6ZiCvk 0pKRidcbPIRD98tiyoT+lFvsj02VEJOf+Q== X-Google-Smtp-Source: ABdhPJx7VHZ0CTt4bhY7+CbaB5q6KH0XRK+sdqOpPAkgjQOaGvsVSsmGgv2UYevMvrA24yiqmlAV7w== X-Received: by 2002:a17:906:145b:: with SMTP id q27mr25191412ejc.432.1613556635944; Wed, 17 Feb 2021 02:10:35 -0800 (PST) Return-Path: Received: from localhost.localdomain (ip-178-202-79-247.hsi09.unitymediagroup.de. [178.202.79.247]) by smtp.gmail.com with ESMTPSA id lz14sm769224ejb.55.2021.02.17.02.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 02:10:35 -0800 (PST) From: "Patrick Rudolph" To: devel@edk2.groups.io Cc: tcrawford@system76.com, jian.j.wang@intel.com, hao.a.wu@intel.com, zhichao.gao@intel.com, ray.ni@intel.com Subject: [PATCH - resend] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen Date: Wed, 17 Feb 2021 11:10:32 +0100 Message-Id: <20210217101032.2822164-1-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tim Crawford 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 initial commit. Signed-off-by: Patrick Rudolph --- 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/In= clude/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,=0D EdkiiPlatformLogoDisplayAttributeLeftBottom,=0D EdkiiPlatformLogoDisplayAttributeCenterLeft,=0D - EdkiiPlatformLogoDisplayAttributeCenter=0D + EdkiiPlatformLogoDisplayAttributeCenter,=0D + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended=0D } EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE;=0D =0D /**=0D 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 =3D 0;=0D DestY =3D (SizeOfY - Image.Height) / 2;=0D break;=0D + case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended:=0D + DestX =3D (SizeOfX - Image.Width) / 2;=0D + DestY =3D (SizeOfY * 382) / 1000 - Image.Height / 2;=0D + break;=0D case EdkiiPlatformLogoDisplayAttributeCenter:=0D DestX =3D (SizeOfX - Image.Width) / 2;=0D DestY =3D (SizeOfY - Image.Height) / 2;=0D 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[] =3D {=0D {=0D IMAGE_TOKEN (IMG_LOGO),=0D - EdkiiPlatformLogoDisplayAttributeCenter,=0D + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended,=0D 0,=0D 0=0D }=0D --=20 2.26.2