summaryrefslogtreecommitdiff
path: root/riscos/htmlredraw.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-07-17 13:00:38 +0000
committerJames Bursa <james@netsurf-browser.org>2004-07-17 13:00:38 +0000
commite4a6e982e599020060d8e43262d53ade0667f439 (patch)
treea3f76f00f0d2154834036e25b4747b322260ce19 /riscos/htmlredraw.c
parentb6782d609583900d14d51272075408072f2e501c (diff)
downloadnetsurf-e4a6e982e599020060d8e43262d53ade0667f439.tar.gz
netsurf-e4a6e982e599020060d8e43262d53ade0667f439.tar.bz2
[project @ 2004-07-17 13:00:38 by bursa]
Simplify gui_window structure. Clean up various parts of the gui code. svn path=/import/netsurf/; revision=1092
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r--riscos/htmlredraw.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index fb08ae060..9a285fb3c 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -639,9 +639,10 @@ void html_redraw_background(long xi, long yi, int width, int height,
}
/* Set the plot options */
- if (!ro_gui_current_redraw_gui->option_background_images) return;
- tinct_options = (ro_gui_current_redraw_gui->option_filter_sprites?tinct_BILINEAR_FILTER:0) |
- (ro_gui_current_redraw_gui->option_dither_sprites?tinct_DITHER:0);
+ if (!ro_gui_current_redraw_gui->option.background_images)
+ return;
+ tinct_options = (ro_gui_current_redraw_gui->option.filter_sprites?tinct_BILINEAR_FILTER:0) |
+ (ro_gui_current_redraw_gui->option.dither_sprites?tinct_DITHER:0);
} else {
if (!option_background_images) return;
tinct_options = (option_filter_sprites?tinct_BILINEAR_FILTER:0) |
@@ -688,8 +689,9 @@ void html_redraw_background(long xi, long yi, int width, int height,
/* get toolbar height */
if (ro_gui_current_redraw_gui &&
- ro_gui_current_redraw_gui->data.browser.toolbar)
- toolbar_height = ro_gui_current_redraw_gui->data.browser.toolbar->height;
+ ro_gui_current_redraw_gui->toolbar)
+ toolbar_height = ro_gui_current_redraw_gui->
+ toolbar->height;
/* top left of viewport, taking account of toolbar height */
x = state.visible.x0;