diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-11-04 01:26:31 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-11-04 01:26:31 +0000 |
commit | 67e3cfc53123e2014d85be39af6682b2ebe9ec09 (patch) | |
tree | 23413bc21907c8dd90a3eccaa9aa1d1ea9f9eac9 /riscos/theme.c | |
parent | 010039686d6bf0605a4874fee05c99e3eb3f3c98 (diff) | |
download | netsurf-67e3cfc53123e2014d85be39af6682b2ebe9ec09.tar.gz netsurf-67e3cfc53123e2014d85be39af6682b2ebe9ec09.tar.bz2 |
[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
Diffstat (limited to 'riscos/theme.c')
-rw-r--r-- | riscos/theme.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |