mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: TerminalDxe driver code clean up
Roll back the EOL change wrongly made by last patch. Adjust the space to align to the EDKII coding style. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12513 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
02b7bcf9ce
commit
4bc6ad3935
|
@ -34,7 +34,7 @@ AnsiRawDataToUnicode (
|
|||
// and translate it into unicode, then push
|
||||
// the unicode into unicode fifo, until the raw fifo is empty.
|
||||
//
|
||||
while (!IsRawFiFoEmpty (TerminalDevice) && !IsUnicodeFiFoFull(TerminalDevice) ) {
|
||||
while (!IsRawFiFoEmpty (TerminalDevice) && !IsUnicodeFiFoFull (TerminalDevice)) {
|
||||
|
||||
RawFiFoRemoveOneKey (TerminalDevice, &RawData);
|
||||
|
||||
|
|
|
@ -563,7 +563,7 @@ TerminalConInTimerHandler (
|
|||
// Fetch all the keys in the serial buffer,
|
||||
// and insert the byte stream into RawFIFO.
|
||||
//
|
||||
while( !IsRawFiFoFull(TerminalDevice) ) {
|
||||
while (!IsRawFiFoFull (TerminalDevice)) {
|
||||
|
||||
Status = GetOneKeyFromSerial (TerminalDevice->SerialIo, &Input);
|
||||
|
||||
|
@ -1061,7 +1061,9 @@ UnicodeToEfiKeyFlushState (
|
|||
|
||||
InputState = TerminalDevice->InputState;
|
||||
|
||||
if( IsEfiKeyFiFoFull(TerminalDevice) ) return;
|
||||
if (IsEfiKeyFiFoFull (TerminalDevice)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((InputState & INPUT_STATE_ESC) != 0) {
|
||||
Key.ScanCode = SCAN_ESC;
|
||||
|
@ -1191,7 +1193,7 @@ UnicodeToEfiKey (
|
|||
TerminalDevice->ResetState = RESET_STATE_DEFAULT;
|
||||
}
|
||||
|
||||
while (!IsUnicodeFiFoEmpty(TerminalDevice) && !IsEfiKeyFiFoFull(TerminalDevice) ) {
|
||||
while (!IsUnicodeFiFoEmpty (TerminalDevice) && !IsEfiKeyFiFoFull (TerminalDevice)) {
|
||||
|
||||
if (TerminalDevice->InputState != INPUT_STATE_DEFAULT) {
|
||||
//
|
||||
|
|
|
@ -36,7 +36,7 @@ VTUTF8RawDataToUnicode (
|
|||
// and translate it into unicode, then push
|
||||
// the unicode into unicode fifo, until the raw fifo is empty.
|
||||
//
|
||||
while (!IsRawFiFoEmpty (TerminalDevice) && !IsUnicodeFiFoFull(TerminalDevice) ) {
|
||||
while (!IsRawFiFoEmpty (TerminalDevice) && !IsUnicodeFiFoFull (TerminalDevice)) {
|
||||
|
||||
GetOneValidUtf8Char (TerminalDevice, &Utf8Char, &ValidBytes);
|
||||
|
||||
|
|
Loading…
Reference in New Issue