mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
According to UEFI Spec, only Bit0...6 is valid in mode attribute, other bits are undefined and must be 0. So attribute with EFI_WIDE_ATTRIBUTE is unacceptable as EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute() input parameter. In current PrintInternal function, wide character removed WIDE_CHAR, and is used as EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString() input parameter. So, wide character is mistakenly be treated as narrow character. Because EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString() can handle unicode string with NARROW_CHAR and WIDE_CHAR, we can directly invoke OutputString() with whole unicode string in PrintInternal function instead of separated wide/narrow string. And then, the logic of computing unicode string width is also simplified. Signed-off-by: Gao Qihang <gaoqihang@loongson.cn> |
||
|---|---|---|
| .. | ||
| Colors.h | ||
| CustomizedDisplayLib.c | ||
| CustomizedDisplayLib.inf | ||
| CustomizedDisplayLib.uni | ||
| CustomizedDisplayLibInternal.c | ||
| CustomizedDisplayLibInternal.h | ||
| CustomizedDisplayLibModStrs.uni | ||