From d81c462d612d05ffdbafd5f6678f83b0f5fcfed2 Mon Sep 17 00:00:00 2001 From: Elvin Li Date: Thu, 31 Jul 2014 03:21:39 +0000 Subject: 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 Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15721 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 7 ------- 1 file changed, 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; } -- cgit v1.2.3