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
This commit is contained in:
Elvin Li 2014-07-31 03:21:39 +00:00 committed by li-elvin
parent 784952b189
commit d81c462d61
1 changed files with 0 additions and 7 deletions

View File

@ -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;
}