summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvin Li <elvin.li@intel.com>2014-07-31 03:21:39 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2014-07-31 03:21:39 +0000
commitd81c462d612d05ffdbafd5f6678f83b0f5fcfed2 (patch)
tree88ffd25309170097ae436f175d325a6d0851db73
parent784952b1898a5a8b65143a88b56b2b231ca21522 (diff)
downloadedk2-platforms-d81c462d612d05ffdbafd5f6678f83b0f5fcfed2.tar.xz
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.li@intel.com> Reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15721 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
index 037fb5adaa..74218c8b4e 100644
--- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
+++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
@@ -1480,13 +1480,6 @@ GraphicsConsoleConOutSetAttribute (
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;
}