]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Ui.c
Fix the issue of Wide char help strings cannot break into multiple lines correctly
[mirror_edk2.git] / EdkModulePkg / Universal / UserInterface / SetupBrowser / Dxe / Ui.c
index 5e09c5e2eb324944c8a4fc6cb634300b7bfe87c5..48b02bf33282fb0ce17e4e83986763a7ce8c8e1a 100644 (file)
@@ -1,5 +1,6 @@
-/*++\r
-\r
+/**@file\r
+  Implementation for UI.\r
+  \r
 Copyright (c) 2006 - 2007, 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
@@ -9,17 +10,7 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
-Module Name:\r
-\r
-  Ui.c\r
-\r
-Abstract:\r
-   \r
-  Implementation for UI.\r
-\r
-Revision History\r
-\r
---*/\r
+**/\r
 \r
 #include "Setup.h"\r
 #include "Ui.h"\r
@@ -2053,14 +2044,14 @@ Returns:
           //\r
           // Pad String with spaces to simulate a clearing of the previous line\r
           //\r
-          for (; GetStringWidth (&FormattedString[Index * gHelpBlockWidth]) / 2 < gHelpBlockWidth;) {\r
-            StrCat (&FormattedString[Index * gHelpBlockWidth], (CHAR16 *) L" ");\r
+          for (; GetStringWidth (&FormattedString[Index * gHelpBlockWidth * 2]) / 2 < gHelpBlockWidth;) {\r
+            StrCat (&FormattedString[Index * gHelpBlockWidth * 2], (CHAR16 *) L" ");\r
           }\r
 \r
           PrintStringAt (\r
             LocalScreen.RightColumn - gHelpBlockWidth,\r
             Index + TopRow,\r
-            &FormattedString[Index * gHelpBlockWidth]\r
+            &FormattedString[Index * gHelpBlockWidth * 2]\r
             );\r
         }\r
       }\r