diff options
author | Gao Qihang <gaoqihang@loongson.cn> | 2025-04-14 11:04:43 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-04-25 03:31:33 +0000 |
commit | 864cc900ab047976becdc794174ec8c8096af8ad (patch) | |
tree | b27a95e11e9ad42b0aac3138822b05506b2563ec /EmulatorPkg/Library/DevicePathTextLib/DevicePathTextLib.c | |
parent | 7711e8a16743b00f1d34725ee67f3354831c149e (diff) | |
download | edk2-864cc900ab047976becdc794174ec8c8096af8ad.tar.gz edk2-864cc900ab047976becdc794174ec8c8096af8ad.tar.bz2 edk2-864cc900ab047976becdc794174ec8c8096af8ad.zip |
DisplayEngineDxe: Fix length when displaying menu string
Function `PrintStringAt` returns the count of Unicode character, which
is not correct for computing column offset when display empty string if
wide character is introduced. `GetStringWidth (String) / 2 - 1` is
suitable option which is compatible with wide and narrow characters.
Cc: Lichao <lichao@loongson.cn>
Cc: Qian Dongyan <qiandongyan@loongson.cn>
Signed-off-by: Gao Qihang <gaoqihang@loongson.cn>
Diffstat (limited to 'EmulatorPkg/Library/DevicePathTextLib/DevicePathTextLib.c')
0 files changed, 0 insertions, 0 deletions