From 8c324c238d235a7c701b51f4526779ef17cba447 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 21 Feb 2010 10:08:48 +0100 Subject: Fix bug with bar background after text with background color (bug #28157) --- src/gui/curses/gui-curses-bar-window.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index 7ca82492b..e8a4483e3 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -556,12 +556,10 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, { some_data_not_displayed = 1; } - while (x < bar_window->width) - { - gui_bar_window_print_string (bar_window, - &x, &y, - " ", 0, 0); - } + gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, + CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]), + CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG])); + wclrtobot (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar); x = 0; y++; } -- cgit v1.2.3