summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-10-20 19:41:19 +0000
committerJames Bursa <james@netsurf-browser.org>2004-10-20 19:41:19 +0000
commit949d01c07924171f6b3bbefcbdaef902bc6b6259 (patch)
tree8ed9d6dde9ac62503eedb701eda4f80dc049def0 /riscos
parent5b226576068fe1d2d022055b385f6c685eb6fe46 (diff)
downloadnetsurf-949d01c07924171f6b3bbefcbdaef902bc6b6259.tar.gz
netsurf-949d01c07924171f6b3bbefcbdaef902bc6b6259.tar.bz2
[project @ 2004-10-20 19:41:19 by bursa]
Fix dashed and dotted border position and thickness. svn path=/import/netsurf/; revision=1330
Diffstat (limited to 'riscos')
-rw-r--r--riscos/plotters.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/riscos/plotters.c b/riscos/plotters.c
index 3c363ea7d..d12d50568 100644
--- a/riscos/plotters.c
+++ b/riscos/plotters.c
@@ -150,16 +150,16 @@ bool ro_plot_line(int x0, int y0, int x1, int y1, int width,
dash_pattern = NULL;
path[1] = (ro_plot_origin_x + x0 * 2) * 256;
- path[2] = (ro_plot_origin_y - y0 * 2) * 256;
+ path[2] = (ro_plot_origin_y - y0 * 2 - 1) * 256;
path[4] = (ro_plot_origin_x + x1 * 2) * 256;
- path[5] = (ro_plot_origin_y - y1 * 2) * 256;
+ path[5] = (ro_plot_origin_y - y1 * 2 - 1) * 256;
error = xcolourtrans_set_gcol(c << 8, 0, os_ACTION_OVERWRITE, 0, 0);
if (error) {
LOG(("xcolourtrans_set_gcol: 0x%x: %s",
error->errnum, error->errmess));
return false;
}
- error = xdraw_stroke((draw_path *) path, 0, 0, 0, width * 256,
+ error = xdraw_stroke((draw_path *) path, 0, 0, 0, width * 2 * 256,
&line_style, dash_pattern);
if (error) {
LOG(("xdraw_stroke: 0x%x: %s",