From 070b0dccf24b64b359227126debbef5b7860ed81 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Fri, 5 Aug 2005 12:01:47 +0000 Subject: [PATCH] Use hline() instead of addch() to clear the menubar widget area. --- src/ChangeLog | 5 +++++ src/menu.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2a30aa23c..dd9cdb429 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-08-05 Pavel Tsekov + + * menu.c (menubar_draw): Use hline() instead of addch() to clear + the menubar widget area. + 2005-07-31 Roland Illig * view.c: Removed global variable have_fast_cpu. It is not used diff --git a/src/menu.c b/src/menu.c index 5b0435f5e..897071be5 100644 --- a/src/menu.c +++ b/src/menu.c @@ -160,9 +160,7 @@ static void menubar_draw (WMenu *menubar) attrset (SELECTED_COLOR); widget_move (&menubar->widget, 0, 0); - /* ncurses bug: it should work with hline but it does not */ - for (i = menubar->widget.cols; i; i--) - addch (' '); + hline (' ', menubar->widget.cols); attrset (SELECTED_COLOR); /* Now each one of the entries */