- Erase countdown timer when needed. Based on a patch from bug 3279.

See issue #3046 for more details.

svn path=/trunk/; revision=33713
This commit is contained in:
Aleksey Bragin 2008-05-26 15:27:09 +00:00
parent 2dab0a3d0f
commit 3c352d6375

View file

@ -292,6 +292,35 @@ TuiDrawMenuBox(PUI_MENU_INFO MenuInfo)
ATTR(UiMenuFgColor, UiMenuBgColor));
}
}
else
{
//
// Erase the timeout string with spaces, and 0-terminate for sure
//
for (i=0; i<sizeof(MenuLineText)-1; i++)
{
MenuLineText[i] = ' ';
}
MenuLineText[sizeof(MenuLineText)-1] = 0;
//
// Draw this "empty" string to erase
//
if (UiCenterMenu)
{
UiDrawText(MenuInfo->Right - strlen(MenuLineText) - 1,
MenuInfo->Bottom,
MenuLineText,
ATTR(UiMenuFgColor, UiMenuBgColor));
}
else
{
UiDrawText(0,
MenuInfo->Bottom + 3,
MenuLineText,
ATTR(UiMenuFgColor, UiMenuBgColor));
}
}
//
// Loop each item