Revision: 14075
          http://edk2.svn.sourceforge.net/edk2/?rev=14075&view=rev
Author:   li-elvin
Date:     2013-01-22 06:37:06 +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/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c

Modified: trunk/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c
===================================================================
--- trunk/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c       
2013-01-22 06:35:57 UTC (rev 14074)
+++ trunk/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c       
2013-01-22 06:37:06 UTC (rev 14075)
@@ -1580,6 +1580,9 @@
       continue;
     }
 
+    DEBUG ((EFI_D_INFO, "Video Controller Mode 0x%x: %d x %d\n",
+            VbeModeNumber, 
BiosVideoPrivate->VbeModeInformationBlock->XResolution, 
BiosVideoPrivate->VbeModeInformationBlock->YResolution));
+
     if (EdidFound && (ValidEdidTiming.ValidNumber > 0)) {
       //
       // EDID exist, check whether this mode match with any mode in EDID
@@ -1623,8 +1626,9 @@
     //
     // Record the highest resolution mode to set later
     //
-    if ((BiosVideoPrivate->VbeModeInformationBlock->XResolution >= 
HighestHorizontalResolution) &&
-        (BiosVideoPrivate->VbeModeInformationBlock->YResolution >= 
HighestVerticalResolution)) {
+    if ((BiosVideoPrivate->VbeModeInformationBlock->XResolution > 
HighestHorizontalResolution) ||
+        ((BiosVideoPrivate->VbeModeInformationBlock->XResolution == 
HighestHorizontalResolution) && 
+         (BiosVideoPrivate->VbeModeInformationBlock->YResolution > 
HighestVerticalResolution))) {
       HighestHorizontalResolution = 
BiosVideoPrivate->VbeModeInformationBlock->XResolution;
       HighestVerticalResolution = 
BiosVideoPrivate->VbeModeInformationBlock->YResolution;
       HighestResolutionMode = ModeNumber;

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