]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BiosVideoThunkDxe/BiosVideo.c
Update the copyright notice format
[mirror_edk2.git] / DuetPkg / BiosVideoThunkDxe / BiosVideo.c
index 07a20aeb000614fa5fb22ef6c1143eb30c031015..e89325c9ffb51855c7f225c8c4a63e7bde1d1027 100644 (file)
@@ -2,7 +2,7 @@
 \r
   BiosVideo driver produce EFI_GRAPHIC_OUTPUT_PROTOCOL via LegacyBios Video rom.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -1090,18 +1090,18 @@ BiosVideoCheckForVbe (
   //\r
   // INT 10 - VESA SuperVGA BIOS (VBE) - GET SuperVGA INFORMATION\r
   //\r
-  //   AX = 4F00h\r
-  //   ES:DI -> buffer for SuperVGA information (see #00077)\r
+  //  AX = 4F00h\r
+  //  ES:DI -> buffer for SuperVGA information (see #00077)\r
   // Return: AL = 4Fh if function supported\r
-  //   AH = status\r
-  //       00h successful\r
-  //           ES:DI buffer filled\r
-  //       01h failed\r
-  //       ---VBE v2.0---\r
-  //       02h function not supported by current hardware configuration\r
-  //       03h function invalid in current video mode\r
-  // Desc:     determine whether VESA BIOS extensions are present and the capabilities\r
-  //     supported by the display adapter\r
+  //  AH = status\r
+  //      00h successful\r
+  //    ES:DI buffer filled\r
+  //      01h failed\r
+  //      ---VBE v2.0---\r
+  //      02h function not supported by current hardware configuration\r
+  //      03h function invalid in current video mode\r
+  // Desc:  determine whether VESA BIOS extensions are present and the capabilities\r
+  //    supported by the display adapter\r
   //\r
   gBS->SetMem (&Regs, sizeof (Regs), 0);\r
   Regs.X.AX = VESA_BIOS_EXTENSIONS_RETURN_CONTROLLER_INFORMATION;\r
@@ -1232,15 +1232,15 @@ BiosVideoCheckForVbe (
     //\r
     // INT 10 - VESA SuperVGA BIOS - GET SuperVGA MODE INFORMATION\r
     //\r
-    //  AX = 4F01h\r
-    //  CX = SuperVGA video mode (see #04082 for bitfields)\r
-    //  ES:DI -> 256-byte buffer for mode information (see #00079)\r
+    //   AX = 4F01h\r
+    //   CX = SuperVGA video mode (see #04082 for bitfields)\r
+    //   ES:DI -> 256-byte buffer for mode information (see #00079)\r
     // Return: AL = 4Fh if function supported\r
-    //  AH = status\r
-    //     00h successful\r
-    //         ES:DI buffer filled\r
-    //     01h failed\r
-    // Desc:   determine the attributes of the specified video mode\r
+    //   AH = status\r
+    //      00h successful\r
+    //    ES:DI buffer filled\r
+    //      01h failed\r
+    // Desc:  determine the attributes of the specified video mode\r
     //\r
     gBS->SetMem (&Regs, sizeof (Regs), 0);\r
     Regs.X.AX = VESA_BIOS_EXTENSIONS_RETURN_MODE_INFORMATION;\r
@@ -1675,10 +1675,6 @@ BiosVideoGraphicsOutputSetMode (
     return EFI_UNSUPPORTED;\r
   }\r
 \r
-  if (ModeNumber == This->Mode->Mode) {\r
-    return EFI_SUCCESS;\r
-  }\r
-\r
   ModeData = &BiosVideoPrivate->ModeData[ModeNumber];\r
 \r
   if (BiosVideoPrivate->LineBuffer) {\r