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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c
index 5ed45d91b..bfef82406 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -2173,6 +2173,7 @@ bool html_redraw_background(int x, int y, struct box *box, float scale,
width = content_get_width(background->background);
height = content_get_height(background->background);
+ /* ensure clip area only as large as required */
if (!repeat_x) {
if (r.x0 < x)
r.x0 = x;