diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-08-13 16:53:30 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-08-13 16:53:30 +0000 |
commit | ab24d46f768c43e734d64b91f423d2e8b860acd0 (patch) | |
tree | 08b04a57ff97ba9a8a02c1f5bff2db0016a5cce5 | |
parent | c4da991b8d024773c1a839d2b40c7e854a9134ab (diff) | |
download | netsurf-ab24d46f768c43e734d64b91f423d2e8b860acd0.tar.gz netsurf-ab24d46f768c43e734d64b91f423d2e8b860acd0.tar.bz2 |
Fix inline border ends where inline text wraps.
svn path=/trunk/netsurf/; revision=10694
-rw-r--r-- | render/html_redraw.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index 80155c93c..35333d65a 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -1135,16 +1135,16 @@ bool html_redraw_inline_borders(struct box *box, int x0, int y0, int x1, int y1, } /* calculate border vertices */ - p[0] = x0 + left; p[1] = y0 + top; - p[2] = x0; p[3] = y0; - p[4] = x1; p[5] = y0; - p[6] = x1 - right; p[7] = y0 + top; - p[8] = x1 - right; p[9] = y1 - bottom; - p[10] = x1; p[11] = y1; - p[12] = x0; p[13] = y1; - p[14] = x0 + left; p[15] = y1 - bottom; - p[16] = x0 + left; p[17] = y0 + top; - p[18] = x0; p[19] = y0; + p[0] = (first) ? x0 + left : x0; p[1] = y0 + top; + p[2] = x0; p[3] = y0; + p[4] = x1; p[5] = y0; + p[6] = (last) ? x1 - right : x1; p[7] = y0 + top; + p[8] = (last) ? x1 - right : x1; p[9] = y1 - bottom; + p[10] = x1; p[11] = y1; + p[12] = x0; p[13] = y1; + p[14] = (first) ? x0 + left : x0; p[15] = y1 - bottom; + p[16] = (first) ? x0 + left : x0; p[17] = y0 + top; + p[18] = x0; p[19] = y0; assert(box->style); |