Revision: 15721
          http://sourceforge.net/p/edk2/code/15721
Author:   li-elvin
Date:     2014-07-31 03:21:39 +0000 (Thu, 31 Jul 2014)
Log Message:
-----------
MdeModulePkg: Removed valid text mode check in SetAttribute interface in 
GraphicsConsole.
UEFI spec mentioned that the color mask can be set even when the device is in 
an invalid text mode. But the current code add text mode check. Removed the 
check now.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Elvin Li <elvin...@intel.com>
Reviewed-by: Jaben Carsey <jaben.car...@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  
    2014-07-30 01:19:21 UTC (rev 15720)
+++ 
trunk/edk2/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c  
    2014-07-31 03:21:39 UTC (rev 15721)
@@ -1480,13 +1480,6 @@
     return EFI_UNSUPPORTED;
   }
 
-  if (This->Mode->Mode == -1) {
-    //
-    // If current mode is not valid, return error.
-    //
-    return EFI_UNSUPPORTED;
-  }
-
   if ((INT32) Attribute == This->Mode->Attribute) {
     return EFI_SUCCESS;
   }

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


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to