Revision: 14074
          http://edk2.svn.sourceforge.net/edk2/?rev=14074&view=rev
Author:   li-elvin
Date:     2013-01-22 06:35:57 +0000 (Tue, 22 Jan 2013)
Log Message:
-----------
Take the highest horizontal resolution as highest video resolution.

Signed-off-by: Li Elvin <elvin...@intel.com>
Reviewed-by: Ni Ruiyu <ruiyu...@intel.com>
Reviewed-by: Tian Hot <hot.t...@intel.com>

Modified Paths:
--------------
    
trunk/edk2/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c

Modified: 
trunk/edk2/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
===================================================================
--- 
trunk/edk2/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c  
    2013-01-22 06:18:50 UTC (rev 14073)
+++ 
trunk/edk2/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c  
    2013-01-22 06:35:57 UTC (rev 14074)
@@ -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.<BR>
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
 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 @@
                            &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;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to