summaryrefslogtreecommitdiff
path: root/riscos/htmlredraw.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-10-05 22:38:02 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-10-05 22:38:02 +0000
commitc0f18cd43453fff2a174955f17cbe91808aa6118 (patch)
tree772589b9e5898b060edc0549d19acd7e6920bde2 /riscos/htmlredraw.c
parent4dafc1394f97da302870f9f9b67159baa9cc7d42 (diff)
downloadnetsurf-c0f18cd43453fff2a174955f17cbe91808aa6118.tar.gz
netsurf-c0f18cd43453fff2a174955f17cbe91808aa6118.tar.bz2
[project @ 2004-10-05 22:38:02 by rjw]
GIF opacity test is now applied to all GIFs. Background colour redraw is optimised out for opaque, repeating images. svn path=/import/netsurf/; revision=1305
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r--riscos/htmlredraw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index 3ddd08e1d..20dfddae6 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -294,7 +294,13 @@ bool html_redraw_box(struct box *box,
int py1 = y < y1 ? y : y1;
/* background colour */
- if (box->style->background_color != TRANSPARENT) {
+ if ((box->style->background_color != TRANSPARENT) &&
+ /* don't redraw background if there is an image covering it */
+ ((box->style->background_repeat != CSS_BACKGROUND_REPEAT_REPEAT) ||
+ (box->background->bitmap == NULL) ||
+ (ro_gui_current_redraw_gui == NULL) ||
+ (!ro_gui_current_redraw_gui->option.background_images) ||
+ (!box->background->bitmap->opaque))) {
if (ro_gui_redraw_box_depth > 2) {
error = xcolourtrans_set_gcol(
box->style->background_color << 8,