From 667bb92e9dea6b0010be269d798f9df0012076f1 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 23 Mar 2004 22:14:56 +0000 Subject: [project @ 2004-03-23 22:14:56 by bursa] Scale borders. svn path=/import/netsurf/; revision=655 --- riscos/htmlredraw.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'riscos/htmlredraw.c') 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 */ -- cgit v1.2.3