From nobody Thu May 2 20:30:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+71716+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+71716+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=9elements.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1613556638467795.7091991273494; Wed, 17 Feb 2021 02:10:38 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id bYezYY1788612xTtZRS1Wcts; Wed, 17 Feb 2021 02:10:38 -0800 X-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 X-Received: by mail-ej1-f43.google.com with SMTP id b14so15158341eju.7 for ; Wed, 17 Feb 2021 02:10:37 -0800 (PST) X-Gm-Message-State: hHvLezVpVPUeFZ1UAywrRI0Ax1787277AA= 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) X-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: [edk2-devel] [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> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,patrick.rudolph@9elements.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1613556638; bh=kw4Bv9fPS59Jl2bPHfjQtVeOWvwrvcYgmSohadfrQmY=; h=Cc:Date:From:Reply-To:Subject:To; b=hYCpP1Ap6Lbc7q7ObrKZD4Q4KXCyqFiuysZ5+PSB4eddvXh4fhBnDYnL4oTPrLjB3Mw 7WbzOsiT5dj36M8cfaVa5c/vbb1/HPR7mV+8q4iyxb7aVKd4Y5dQAhB7gBm7cdqbV9d7r ON+xlZvlp58d8D+VDfvGwKhJcNJaApX7Z9g= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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, EdkiiPlatformLogoDisplayAttributeLeftBottom, EdkiiPlatformLogoDisplayAttributeCenterLeft, - EdkiiPlatformLogoDisplayAttributeCenter + EdkiiPlatformLogoDisplayAttributeCenter, + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended } EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE; =20 /** 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; DestY =3D (SizeOfY - Image.Height) / 2; break; + case EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended: + DestX =3D (SizeOfX - Image.Width) / 2; + DestY =3D (SizeOfY * 382) / 1000 - Image.Height / 2; + break; case EdkiiPlatformLogoDisplayAttributeCenter: DestX =3D (SizeOfX - Image.Width) / 2; DestY =3D (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[] =3D { { IMAGE_TOKEN (IMG_LOGO), - EdkiiPlatformLogoDisplayAttributeCenter, + EdkiiPlatformLogoDisplayAttributeMicrosoftRecommended, 0, 0 } --=20 2.26.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-