[ros-diffs] [fireball] 33713: - Erase countdown timer when needed. Based on a patch from bug 3279. See issue #3046 for more details.

fireball at svn.reactos.org fireball at svn.reactos.org
Mon May 26 17:27:10 CEST 2008


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/tuimenu.c?rev=33713&r1=33712&r2=33713&view=diff
==============================================================================
--- 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



More information about the Ros-diffs mailing list