]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c
ECC clean up.
[mirror_edk2.git] / MdeModulePkg / Universal / Console / ConSplitterDxe / ConSplitterGraphics.c
index 686a47331ff81a264c2e695b3adb46280eca7eb6..251ab5dcb251ebb738c0115beb20cddb63e21c7b 100644 (file)
@@ -76,15 +76,15 @@ ConSpliterConsoleControlGetMode (
 \r
 \r
 /**\r
-  Set the current mode to either text or graphics. Graphics is\r
+  Set the current video mode to either text or graphics. Graphics is\r
   for Quiet Boot.\r
 \r
   @param  This                    Console Control Protocol instance pointer.\r
-  @param  Mode                    Mode to set.\r
+  @param  Mode                    Video mode is to be set.\r
 \r
-  @retval EFI_SUCCESS             Mode information returned.\r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
-  @retval EFI_UNSUPPORTED         Operation unsupported.\r
+  @retval EFI_SUCCESS             Mode is set successfully.\r
+  @retval EFI_INVALID_PARAMETER   Mode is not the valid mode value.\r
+  @retval EFI_UNSUPPORTED         Mode is unsupported by console device.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -205,7 +205,7 @@ ConSpliterGraphicsOutputQueryMode (
 \r
 \r
 /**\r
-  Set the video device into the specified mode and clears the visible portions of \r
+  Set the video device into the specified mode and clears the visible portions of\r
   the output display to black.\r
 \r
   @param  This                  The EFI_GRAPHICS_OUTPUT_PROTOCOL instance.\r
@@ -361,7 +361,7 @@ ConSpliterGraphicsOutputSetMode (
   @param  DestinationX            X coordinate of destination for the BltBuffer.\r
   @param  DestinationY            Y coordinate of destination for the BltBuffer.\r
   @param  Width                   Width of rectangle in BltBuffer in pixels.\r
-  @param  Height                  Hight of rectangle in BltBuffer in pixels. \r
+  @param  Height                  Hight of rectangle in BltBuffer in pixels.\r
   @param  Delta                   OPTIONAL.\r
 \r
   @retval EFI_SUCCESS             The Blt operation completed.\r
@@ -525,7 +525,7 @@ DevNullGraphicsOutputBlt (
   @param  DestinationX            X coordinate of destination for the BltBuffer.\r
   @param  DestinationY            Y coordinate of destination for the BltBuffer.\r
   @param  Width                   Width of rectangle in BltBuffer in pixels.\r
-  @param  Height                  Hight of rectangle in BltBuffer in pixels. \r
+  @param  Height                  Hight of rectangle in BltBuffer in pixels.\r
   @param  Delta                   OPTIONAL.\r
 \r
   @retval EFI_SUCCESS             The Blt operation completed.\r
@@ -634,7 +634,7 @@ ConSpliterGraphicsOutputBlt (
 }\r
 \r
 /**\r
-  Write data from the buffer to video display based on Graphics Output setting. \r
+  Write data from the buffer to video display based on Graphics Output setting.\r
 \r
   @param  Private                 Consplitter Text Out pointer.\r
   @param  GraphicsOutput          Graphics Output protocol pointer.\r
@@ -644,7 +644,7 @@ ConSpliterGraphicsOutputBlt (
   @retval EFI_SUCCESS             The Blt operation completed.\r
   @retval EFI_INVALID_PARAMETER   BltOperation is not valid.\r
   @retval EFI_DEVICE_ERROR        A hardware error occured writting to the video buffer.\r
-                 \r
+\r
 \r
 **/\r
 EFI_STATUS\r
@@ -842,7 +842,7 @@ ConSpliterUgaDrawSetMode (
           ReturnStatus = Status;\r
         }\r
       }\r
-    } \r
+    }\r
   }\r
 \r
   return ReturnStatus;\r
@@ -859,7 +859,7 @@ ConSpliterUgaDrawSetMode (
     (DestinationX, DestinationY)\r
     (DestinationX + Width, DestinationY + Height).\r
     Only one pixel will be used from the BltBuffer. Delta is NOT used.\r
-  EfiUgaVideoToBltBuffer: \r
+  EfiUgaVideoToBltBuffer:\r
     Read data from the video display rectangle\r
     (SourceX, SourceY) (SourceX + Width, SourceY + Height) and place it in\r
     the BltBuffer rectangle (DestinationX, DestinationY )\r
@@ -891,7 +891,7 @@ ConSpliterUgaDrawSetMode (
   @param  DestinationX            X coordinate of destination for the BltBuffer.\r
   @param  DestinationY            Y coordinate of destination for the BltBuffer.\r
   @param  Width                   Width of rectangle in BltBuffer in pixels.\r
-  @param  Height                  Hight of rectangle in BltBuffer in pixels. \r
+  @param  Height                  Hight of rectangle in BltBuffer in pixels.\r
   @param  Delta                   OPTIONAL.\r
 \r
   @retval EFI_SUCCESS             The Blt operation completed.\r
@@ -1028,7 +1028,7 @@ DevNullUgaBlt (
     (DestinationX, DestinationY)\r
     (DestinationX + Width, DestinationY + Height).\r
     Only one pixel will be used from the BltBuffer. Delta is NOT used.\r
-  EfiUgaVideoToBltBuffer: \r
+  EfiUgaVideoToBltBuffer:\r
     Read data from the video display rectangle\r
     (SourceX, SourceY) (SourceX + Width, SourceY + Height) and place it in\r
     the BltBuffer rectangle (DestinationX, DestinationY )\r
@@ -1163,7 +1163,7 @@ ConSpliterUgaDrawBlt (
 }\r
 \r
 /**\r
-  Write data from the buffer to video display based on UGA Draw setting. \r
+  Write data from the buffer to video display based on UGA Draw setting.\r
 \r
   @param  Private                 Consplitter Text Out pointer.\r
   @param  GraphicsOutput          Graphics Output protocol pointer.\r
@@ -1173,7 +1173,7 @@ ConSpliterUgaDrawBlt (
   @retval EFI_SUCCESS             The Blt operation completed.\r
   @retval EFI_INVALID_PARAMETER   BltOperation is not valid.\r
   @retval EFI_DEVICE_ERROR        A hardware error occured writting to the video buffer.\r
-                  \r
+\r
 **/\r
 EFI_STATUS\r
 DevNullUgaSync (\r
@@ -1261,7 +1261,7 @@ DevNullTextOutOutputString (
   LastRow         = Private->DevNullRows - 1;\r
   MaxColumn       = Private->DevNullColumns;\r
 \r
-  if (Mode->Attribute & EFI_WIDE_ATTRIBUTE) {\r
+  if ((Mode->Attribute & EFI_WIDE_ATTRIBUTE) != 0) {\r
     CurrentWidth = 2;\r
   } else {\r
     CurrentWidth = 1;\r
@@ -1561,7 +1561,7 @@ DevNullTextOutClearScreen (
   Sets the current coordinates of the cursor position.\r
 \r
   @param  Private                 Text Out Splitter pointer.\r
-  @param  Column                  \r
+  @param  Column\r
   @param  Row                     the position to set the cursor to. Must be\r
                                   greater than or equal to zero and less than the\r
                                   number of columns and rows by QueryMode ().\r