mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
- 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:
parent
2dab0a3d0f
commit
3c352d6375
|
@ -292,6 +292,35 @@ TuiDrawMenuBox(PUI_MENU_INFO MenuInfo)
|
||||||
ATTR(UiMenuFgColor, UiMenuBgColor));
|
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
|
// Loop each item
|
||||||
|
|
Loading…
Reference in a new issue