mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
[project @ 2004-11-11 00:52:17 by rjw]
Fix for HTML redraw artifacts svn path=/import/netsurf/; revision=1359
This commit is contained in:
parent
015b27ad4a
commit
4bcef8408a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user