From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web11.9339.1609945718088069213 for ; Wed, 06 Jan 2021 07:08:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=TrTp/4bS; spf=pass (domain: 9elements.com, ip: 209.85.221.48, mailfrom: patrick.rudolph@9elements.com) Received: by mail-wr1-f48.google.com with SMTP id t30so2756071wrb.0 for ; Wed, 06 Jan 2021 07:08: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=hNUn/zj+P64g/ZIFuXwJ/cs1nR1OSrvOJLcP0SKgXCg=; b=TrTp/4bSYPduOZfkJdstTACUcy6PRf6WvtRyw0YQTo3i/Va9AwH4LFATM9A7sdtEQ+ +FD4TbDmXde+i4H7XRj0FjeSmpKU5tODxqGXZGfz013UjD4dojs0I4XJBBoBYhg9MukE HslB6TfirKVi4krY6FqCQ9NdZIHgi47BG/H9m5SCy1dGvOZtwtJwt4cpl2jcthRwpuw3 ijyUT+qW+po3rSULhFcOx6VnZ6/8H2YRTHpoDSooTjC9QWeWkA88kVy2kjp+B3ZJ/Ttm 7Sx1vtNyoAmy3VGMj1kDe70UDIGbZ+I9BGvbt+oZQ1DbaoUMFMVz4kBDtivjmP4FUqjV hLPQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=hNUn/zj+P64g/ZIFuXwJ/cs1nR1OSrvOJLcP0SKgXCg=; b=OtemiMHMqGgnvolfaH9dX/Rgv5GPLI5qXyihjWRIlqN2UGmJKJVJQG/8DdC1NLHqtS NmRDE/dF8t7vtQgc+ebXvQucUy2V6oyvrGHVlIHArZcMlLhhRmX8rQTQ3VqljWjEf3pT lk2H4OcKOlmrj9478fGSZWpSs/Y+I5GxW1FYQlGgejPHKVg6YFvQ7UgHxld/euZrT4+S /mrc1YZeajdOhGvADpJwobP5bQfwM+0Nl+CogY/h5+RL7A5LK9NpY/1n89ea2rJga+DJ Jc4uYYpdIouBQZ/zVL7q2ewTxmGPSlhvlXY0OA/x9j/zAVJXQWwqZmc+BCv5npzcSefv B1kQ== X-Gm-Message-State: AOAM532efJGduKzYvtnlVldJwLvsuGUz9oDFNKSBrpCOltodUYUUBbk9 kkSyf2Vz9bGIOkGKAYbPdnjbd2TwCxzK8Q== X-Google-Smtp-Source: ABdhPJyc5ufrKX/oCIQbuCeYBz4UVJ1jVy4dB0iJhQ3tWuxzDX5nAnH6jjclpeOCFruBIam2ugW/5w== X-Received: by 2002:adf:ab45:: with SMTP id r5mr4722147wrc.99.1609945716371; Wed, 06 Jan 2021 07:08:36 -0800 (PST) Return-Path: Received: from localhost.localdomain (ip-178-200-253-193.hsi07.unitymediagroup.de. [178.200.253.193]) by smtp.gmail.com with ESMTPSA id z8sm3308241wmg.17.2021.01.06.07.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 07:08:35 -0800 (PST) From: "Patrick Rudolph" To: devel@edk2.groups.io Cc: maurice.ma@intel.com, guo.dong@intel.com, benjamin.you@intel.com Subject: [PATCH 2/2] MdeModulePkg/BootLogoLib: Center logo 38.2% from top of screen Date: Wed, 6 Jan 2021 16:08:30 +0100 Message-Id: <20210106150830.11110-3-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210106150830.11110-1-patrick.rudolph@9elements.com> References: <20210106150830.11110-1-patrick.rudolph@9elements.com> 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