summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-11-04 01:26:31 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-11-04 01:26:31 +0000
commit67e3cfc53123e2014d85be39af6682b2ebe9ec09 (patch)
tree23413bc21907c8dd90a3eccaa9aa1d1ea9f9eac9
parent010039686d6bf0605a4874fee05c99e3eb3f3c98 (diff)
downloadnetsurf-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
-rw-r--r--riscos/theme.c4
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);