summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-11-11 00:52:17 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-11-11 00:52:17 +0000
commit4bcef8408a5fd517d6b194039fb949ac617cc97f (patch)
tree15a1b480b7bfc290b90306562a0cb604544d561f /render
parent015b27ad4ae9470138352b43ad8567f70891a36e (diff)
downloadnetsurf-4bcef8408a5fd517d6b194039fb949ac617cc97f.tar.gz
netsurf-4bcef8408a5fd517d6b194039fb949ac617cc97f.tar.bz2
[project @ 2004-11-11 00:52:17 by rjw]
Fix for HTML redraw artifacts svn path=/import/netsurf/; revision=1359
Diffstat (limited to 'render')
-rw-r--r--render/html_redraw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c
index 9ecbd5e65..28796d1a0 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -239,7 +239,7 @@ bool html_redraw_box(struct box *box,
current_background_color = box->style->background_color;
}
- if (box->background) {
+ if ((box->background) && (px0 < px1) && (py0 < py1)) {
/* clip to padding box for everything but the main window */
if (box->parent) {
if (!plot.clip(px0, py0, px1, py1))
@@ -252,7 +252,8 @@ bool html_redraw_box(struct box *box,
/* plot background image */
if (!html_redraw_background(x, y, box, scale,
- current_background_color)) return false;
+ current_background_color))
+ return false;
/* restore previous graphics window */
if (!plot.clip(x0, y0, x1, y1))