From 67e3cfc53123e2014d85be39af6682b2ebe9ec09 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 4 Nov 2004 01:26:31 +0000 Subject: [project @ 2004-11-04 01:26:31 by rjw] Only display separators when we should. Drunken code is bad. svn path=/import/netsurf/; revision=1343 --- riscos/theme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/riscos/theme.c b/riscos/theme.c index 3420c5c43..c679e56f1 100644 --- a/riscos/theme.c +++ b/riscos/theme.c @@ -566,10 +566,12 @@ void ro_gui_theme_redraw(struct toolbar *toolbar, wimp_draw *redraw) { separator_icon.extent.y1 = toolbar->height; perform_redraw = true; } + perform_redraw &= toolbar->display_buttons; + while (more) { if (perform_redraw) { for (icon = toolbar->icon; icon; icon = icon->next) { - if (icon->icon_number == -1) { + if ((icon->icon_number == -1) && (icon->display)) { separator_icon.extent.x0 = icon->x; separator_icon.extent.x1 = icon->x + icon->width; wimp_plot_icon(&separator_icon); -- cgit v1.2.3