From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.5623.1649331400634530767 for ; Thu, 07 Apr 2022 04:36:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RiSHK8uE; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649331398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0NNwuUYorWpFYxAKyxrSui44DTxOvls8ujihIZxtEwY=; b=RiSHK8uEJnm293MwvxD6AZ2LvuEHu5K6c0nmVtsj2AAkGb0P32gtT8wuszQ4ac2oke2YS4 1nk2wmMB8W/r+190YHWq2zbb2x1u8OxYb7wmDyZ4b0cH7hmY5Gr4mSBr1CAJJpp0XJeC7e 6bQ91A2raUVLXUj80t/atOY+9qdEvRw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-168-fe3cCLqwOQ2B-YcF-rhTuQ-1; Thu, 07 Apr 2022 07:36:33 -0400 X-MC-Unique: fe3cCLqwOQ2B-YcF-rhTuQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0406B918BCE; Thu, 7 Apr 2022 11:36:30 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9681F111F3D9; Thu, 7 Apr 2022 11:36:18 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 33B031800394; Thu, 7 Apr 2022 13:36:17 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Erdem Aktas , Sami Mujawar , Julien Grall , James Bottomley , Anthony Perard , Min Xu , Gerd Hoffmann , Oliver Steffen , Ray Ni , Ard Biesheuvel , Jordan Justen , Jian J Wang , Tom Lendacky , Brijesh Singh , Jiewen Yao , Leif Lindholm , Liming Gao , Zhichao Gao , Pawel Polawski Subject: [PATCH 1/3] MdeModulePkg/GraphicsConsoleDxe: add modes Date: Thu, 7 Apr 2022 13:36:15 +0200 Message-Id: <20220407113617.2217351-2-kraxel@redhat.com> In-Reply-To: <20220407113617.2217351-1-kraxel@redhat.com> References: <20220407113617.2217351-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Add modes for a few common display resolutions higher than 800x600, specifically 1024x768, 1280x800 and 1920x1080, so ConSplitterDxe has more options available. The mode list is not use as-is, InitializeGraphicsConsoleTextMode() will check the list and filter out any modes which don't fit to the screen, so this will also work fine for small displays. Signed-off-by: Gerd Hoffmann --- .../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 07436cbd15bf..b895dafedeaa 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -40,7 +40,10 @@ GRAPHICS_CONSOLE_DEV mGraphicsConsoleDevTemplate = { }; GRAPHICS_CONSOLE_MODE_DATA mGraphicsConsoleModeData[] = { - { 100, 31 }, + { 100, 31 }, // 800 x 600 + { 128, 40 }, // 1024 x 768 + { 160, 42 }, // 1280 x 800 + { 240, 56 }, // 1920 x 1080 // // New modes can be added here. // The last entry is specific for full screen mode. -- 2.35.1