[USETUP] Clear underlined text correctly

CORE-18446, CORE-5052
This commit is contained in:
Katayama Hirofumi MZ 2022-10-08 08:47:22 +09:00
parent d707916605
commit bf2f5a70a5

View File

@ -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);