summaryrefslogtreecommitdiff
path: root/render/html_redraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r--render/html_redraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c
index c69b24610..e56035f38 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -267,7 +267,7 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent,
struct box *bg_box = NULL;
bool has_x_scroll, has_y_scroll;
- if (html_redraw_printing && box->printed)
+ if (html_redraw_printing && (box->flags & PRINTED))
return true;
/* avoid trivial FP maths */
@@ -377,7 +377,7 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent,
return true;
}
}
- else box->printed = true;/*it won't be printed anymore*/
+ else box->flags |= PRINTED; /*it won't be printed anymore*/
}
/* if visibility is hidden render children only */