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>
This commit is contained in:
parent
ad24a4d735
commit
3a2718d74e
|
@ -2,7 +2,7 @@
|
||||||
Implementation for EFI_HII_FONT_PROTOCOL.
|
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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -2156,9 +2156,8 @@ HiiStringToImage (
|
||||||
|
|
||||||
NextLine:
|
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;
|
BltY += RowInfo[RowIndex].LineHeight;
|
||||||
|
|
||||||
RowIndex++;
|
RowIndex++;
|
||||||
|
|
Loading…
Reference in New Issue