From bf2f5a70a53860de0808d83a4540c7e97520c92f Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Sat, 8 Oct 2022 08:47:22 +0900 Subject: [PATCH] [USETUP] Clear underlined text correctly CORE-18446, CORE-5052 --- base/setup/usetup/consup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/setup/usetup/consup.c b/base/setup/usetup/consup.c index 4aa952ce2a3..22feebd7c79 100644 --- a/base/setup/usetup/consup.c +++ b/base/setup/usetup/consup.c @@ -815,6 +815,11 @@ CONSOLE_ClearStyledText( { CONSOLE_ClearStatusTextX(coPos.X, Length); } + else if (Flags & TEXT_STYLE_UNDERLINE) + { + CONSOLE_ClearTextXY(coPos.X, coPos.Y, Length); + CONSOLE_ClearTextXY(coPos.X, coPos.Y + 1, Length); + } else /* TEXT_TYPE_REGULAR (Default) */ { CONSOLE_ClearTextXY(coPos.X, coPos.Y, Length);