From 91c933213b10d615f134c1df412e0509cc40362d Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 6 Apr 2006 23:03:32 +0000 Subject: [project @ 2006-04-06 23:03:32 by rjw] Fix 1462681 svn path=/import/netsurf/; revision=2499 --- render/html_redraw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/render/html_redraw.c b/render/html_redraw.c index b225adb29..16d2dcb85 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -1125,10 +1125,10 @@ bool html_redraw_background(int x, int y, struct box *box, float scale, /* update clip_* to the child cell */ clip_x0 = ox + (clip_box->x * scale); clip_y0 = oy + (clip_box->y * scale); - clip_x1 = clip_x0 + clip_box->padding[LEFT] + - clip_box->width + clip_box->padding[RIGHT]; - clip_y1 = clip_y0 + clip_box->padding[TOP] + - clip_box->height + clip_box->padding[BOTTOM]; + clip_x1 = clip_x0 + (clip_box->padding[LEFT] + + clip_box->width + clip_box->padding[RIGHT]) * scale; + clip_y1 = clip_y0 + (clip_box->padding[TOP] + + clip_box->height + clip_box->padding[BOTTOM]) * scale; if (clip_x0 < px0) clip_x0 = px0; if (clip_y0 < py0) clip_y0 = py0; if (clip_x1 > px1) clip_x1 = px1; -- cgit v1.2.3