From 0666b5e858fdbad3275b85b8987dd60f2dffec9f Mon Sep 17 00:00:00 2001 From: li-elvin Date: Tue, 22 Jan 2013 06:35:57 +0000 Subject: [PATCH] Take the highest horizontal resolution as highest video resolution. Signed-off-by: Li Elvin Reviewed-by: Ni Ruiyu Reviewed-by: Tian Hot git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14074 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 212564a5c8..09e82b091a 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -1,7 +1,7 @@ /** @file This is the main routine for initializing the Graphics Console support routines. -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -453,8 +453,8 @@ GraphicsConsoleControllerDriverStart ( &Info ); if (!EFI_ERROR (Status)) { - if ((Info->HorizontalResolution >= HorizontalResolution) && - (Info->VerticalResolution >= VerticalResolution)) { + if ((Info->HorizontalResolution > HorizontalResolution) || + ((Info->HorizontalResolution == HorizontalResolution) && (Info->VerticalResolution > VerticalResolution))) { HorizontalResolution = Info->HorizontalResolution; VerticalResolution = Info->VerticalResolution; ModeNumber = ModeIndex;