summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-02-19 12:24:20 +0800
committerStar Zeng <star.zeng@intel.com>2016-02-23 17:03:20 +0800
commit3a2718d74eb38e33be8b1d493bd84840f5cc3729 (patch)
tree1577b2079b4f68cd37a6ca3d87ed873f6373c54a /MdeModulePkg/Universal
parentad24a4d735f035a0c56a56f59f5cf5a26b5c25d2 (diff)
downloadedk2-3a2718d74eb38e33be8b1d493bd84840f5cc3729.tar.gz
edk2-3a2718d74eb38e33be8b1d493bd84840f5cc3729.tar.bz2
edk2-3a2718d74eb38e33be8b1d493bd84840f5cc3729.zip
MdeModulePkg: HiiDatabaseDxe: HiiStringToImage() should not overwrite BltX
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>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/HiiDatabaseDxe/Font.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c
index 4b70b995f5..56b30ff6ff 100644
--- a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c
+++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c
@@ -2,7 +2,7 @@
Implementation for EFI_HII_FONT_PROTOCOL.
-Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -2156,9 +2156,8 @@ HiiStringToImage (
NextLine:
//
- // Recalculate the start point of X/Y axis to draw multi-lines with the order of top-to-down
+ // Recalculate the start point of Y axis to draw multi-lines with the order of top-to-down
//
- BltX = 0;
BltY += RowInfo[RowIndex].LineHeight;
RowIndex++;