From 3c352d6375a2e5c83bf5478b03a9e6836cea500d Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 26 May 2008 15:27:09 +0000 Subject: [PATCH] - Erase countdown timer when needed. Based on a patch from bug 3279. See issue #3046 for more details. svn path=/trunk/; revision=33713 --- reactos/boot/freeldr/freeldr/ui/tuimenu.c | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/reactos/boot/freeldr/freeldr/ui/tuimenu.c b/reactos/boot/freeldr/freeldr/ui/tuimenu.c index 248e853cfb4..d5078c7ea50 100644 --- a/reactos/boot/freeldr/freeldr/ui/tuimenu.c +++ b/reactos/boot/freeldr/freeldr/ui/tuimenu.c @@ -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; iRight - strlen(MenuLineText) - 1, + MenuInfo->Bottom, + MenuLineText, + ATTR(UiMenuFgColor, UiMenuBgColor)); + } + else + { + UiDrawText(0, + MenuInfo->Bottom + 3, + MenuLineText, + ATTR(UiMenuFgColor, UiMenuBgColor)); + } + } // // Loop each item