summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/Library/DevicePathTextLib/DevicePathTextLib.c
diff options
context:
space:
mode:
authorGao Qihang <gaoqihang@loongson.cn>2025-04-14 11:04:43 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-04-25 03:31:33 +0000
commit864cc900ab047976becdc794174ec8c8096af8ad (patch)
treeb27a95e11e9ad42b0aac3138822b05506b2563ec /EmulatorPkg/Library/DevicePathTextLib/DevicePathTextLib.c
parent7711e8a16743b00f1d34725ee67f3354831c149e (diff)
downloadedk2-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