summaryrefslogtreecommitdiff
path: root/riscos/htmlredraw.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-03-23 22:14:56 +0000
committerJames Bursa <james@netsurf-browser.org>2004-03-23 22:14:56 +0000
commit667bb92e9dea6b0010be269d798f9df0012076f1 (patch)
tree6364ca7c7a5a3c79c8c43555ba27c34aefb1d68b /riscos/htmlredraw.c
parent270da4008b9db525e7c31d73c2c361c58143de63 (diff)
downloadnetsurf-667bb92e9dea6b0010be269d798f9df0012076f1.tar.gz
netsurf-667bb92e9dea6b0010be269d798f9df0012076f1.tar.bz2
[project @ 2004-03-23 22:14:56 by bursa]
Scale borders. svn path=/import/netsurf/; revision=655
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r--riscos/htmlredraw.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c
index c552c1718..ad1098356 100644
--- a/riscos/htmlredraw.c
+++ b/riscos/htmlredraw.c
@@ -125,36 +125,36 @@ void html_redraw_box(struct content *content, struct box * box,
/* borders */
if (box->style && box->border[TOP])
html_redraw_border(box->style->border[TOP].color,
- box->border[TOP] * 2,
+ box->border[TOP] * 2 * scale,
box->style->border[TOP].style,
- x - box->border[LEFT] * 2,
- y + box->border[TOP],
- x + width + box->border[RIGHT] * 2,
- y + box->border[TOP]);
+ x - box->border[LEFT] * 2 * scale,
+ y + box->border[TOP] * scale,
+ x + width + box->border[RIGHT] * 2 * scale,
+ y + box->border[TOP] * scale);
if (box->style && box->border[RIGHT])
html_redraw_border(box->style->border[RIGHT].color,
- box->border[RIGHT] * 2,
+ box->border[RIGHT] * 2 * scale,
box->style->border[RIGHT].style,
- x + width + box->border[RIGHT],
- y + box->border[TOP] * 2,
- x + width + box->border[RIGHT],
- y - height - box->border[BOTTOM] * 2);
+ x + width + box->border[RIGHT] * scale,
+ y + box->border[TOP] * 2 * scale,
+ x + width + box->border[RIGHT] * scale,
+ y - height - box->border[BOTTOM] * 2 * scale);
if (box->style && box->border[BOTTOM])
html_redraw_border(box->style->border[BOTTOM].color,
- box->border[BOTTOM] * 2,
+ box->border[BOTTOM] * 2 * scale,
box->style->border[BOTTOM].style,
- x - box->border[LEFT] * 2,
- y - height - box->border[BOTTOM],
- x + width + box->border[RIGHT] * 2,
- y - height - box->border[BOTTOM]);
+ x - box->border[LEFT] * 2 * scale,
+ y - height - box->border[BOTTOM] * scale,
+ x + width + box->border[RIGHT] * 2 * scale,
+ y - height - box->border[BOTTOM] * scale);
if (box->style && box->border[LEFT])
html_redraw_border(box->style->border[LEFT].color,
- box->border[LEFT] * 2,
+ box->border[LEFT] * 2 * scale,
box->style->border[LEFT].style,
- x - box->border[LEFT],
- y + box->border[TOP] * 2,
- x - box->border[LEFT],
- y - height - box->border[BOTTOM] * 2);
+ x - box->border[LEFT] * scale,
+ y + box->border[TOP] * 2 * scale,
+ x - box->border[LEFT] * scale,
+ y - height - box->border[BOTTOM] * 2 * scale);
/* return if the box is completely outside the clip rectangle, except
* for table rows which may contain cells spanning into other rows */