]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: HiiDatabaseDxe: HiiStringToImage() should not overwrite BltX
authorDandan Bi <dandan.bi@intel.com>
Fri, 19 Feb 2016 04:24:20 +0000 (12:24 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 23 Feb 2016 09:03:20 +0000 (17:03 +0800)
when has next line to draw, should not overwrite the BltX
to 0, instead should keep the BltX value that pass into
StringToImage function.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
MdeModulePkg/Universal/HiiDatabaseDxe/Font.c

index 4b70b995f5e5733ed13d1ab82f18a3c13027087d..56b30ff6ffe3416c74fc02c2919162be649d8146 100644 (file)
@@ -2,7 +2,7 @@
 Implementation for EFI_HII_FONT_PROTOCOL.\r
 \r
 \r
-Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -2156,9 +2156,8 @@ HiiStringToImage (
 \r
 NextLine:\r
     //\r
-    // Recalculate the start point of X/Y axis to draw multi-lines with the order of top-to-down\r
+    // Recalculate the start point of Y axis to draw multi-lines with the order of top-to-down\r
     //\r
-    BltX = 0;\r
     BltY += RowInfo[RowIndex].LineHeight;\r
 \r
     RowIndex++;\r