From 4bcef8408a5fd517d6b194039fb949ac617cc97f Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 11 Nov 2004 00:52:17 +0000 Subject: [project @ 2004-11-11 00:52:17 by rjw] Fix for HTML redraw artifacts svn path=/import/netsurf/; revision=1359 --- render/html_redraw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'render') 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)) -- cgit v1.2.3