Author: fireball Date: Mon May 26 10:27:09 2008 New Revision: 33713
URL: http://svn.reactos.org/svn/reactos?rev=33713&view=rev Log: - Erase countdown timer when needed. Based on a patch from bug 3279. See issue #3046 for more details.
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/ui/tui... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c [iso-8859-1] Mon May 26 10:27:09 2008 @@ -292,6 +292,35 @@ 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