diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-04-06 23:03:32 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-04-06 23:03:32 +0000 |
commit | 91c933213b10d615f134c1df412e0509cc40362d (patch) | |
tree | a42b0f43420eea10080530be02935e53259c58f7 /render | |
parent | 1bb74deace00d18fd620cff1ffece85e163b887c (diff) | |
download | netsurf-91c933213b10d615f134c1df412e0509cc40362d.tar.gz netsurf-91c933213b10d615f134c1df412e0509cc40362d.tar.bz2 |
[project @ 2006-04-06 23:03:32 by rjw]
Fix 1462681
svn path=/import/netsurf/; revision=2499
Diffstat (limited to 'render')
-rw-r--r-- | render/html_redraw.c | 8 |
1 files 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; |