Skip to content

Commit

Permalink
MdeModulePkg: Removed valid text mode check in SetAttribute interface…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
Elvin Li authored and li-elvin committed Jul 31, 2014
1 parent 784952b commit d81c462
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d81c462

Please sign in to comment.