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.129.124]) by mx.groups.io with SMTP id smtpd.web08.7903.1650631289999099258 for ; Fri, 22 Apr 2022 05:41:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XeiPSN0t; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650631289; 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=rmsxC20NAqFv1bA4ZB04uYcpVfOgAmPrcodXOiN9Bfc=; b=XeiPSN0tXhB+E6vJ5nBirJCu9AXb/j9xxfM3AjqPnBYnJHK/NAr+qDGJKOvL9MOC7llKtW Io0OZBLyVRZoIGTlBlbbfSdOGEZ6FH003S7lIKK64Wq9C0GkGR51/ILKa1G3qM0a952lGu qDeahjkTIs8iDyJe0fe4jYz9Ifunidc= 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-631-LXads81pO0SntqiIrM2vjA-1; Fri, 22 Apr 2022 08:41:26 -0400 X-MC-Unique: LXads81pO0SntqiIrM2vjA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4183E833963; Fri, 22 Apr 2022 12:41:25 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 604BC54EAE2; Fri, 22 Apr 2022 12:41:22 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 6C708180098C; Fri, 22 Apr 2022 14:41:20 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Oliver Steffen , Ray Ni , Gerd Hoffmann , Jordan Justen , Brijesh Singh , Jian J Wang , Min Xu , James Bottomley , Erdem Aktas , Julien Grall , Zhichao Gao , Ard Biesheuvel , Liming Gao , Sami Mujawar , Anthony Perard , Leif Lindholm , Jiewen Yao , Tom Lendacky Subject: [PATCH v2 1/3] MdeModulePkg/GraphicsConsoleDxe: add modes Date: Fri, 22 Apr 2022 14:41:18 +0200 Message-Id: <20220422124120.2816257-2-kraxel@redhat.com> In-Reply-To: <20220422124120.2816257-1-kraxel@redhat.com> References: <20220422124120.2816257-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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 Reviewed-by: Liming Gao --- .../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