summaryrefslogtreecommitdiff
path: root/riscos/plotters.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/plotters.c')
-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",