From 81512fa939c2cfa759b80a48a89f39fdc5238cd4 Mon Sep 17 00:00:00 2001 From: Adrian Lees Date: Sun, 16 Jul 2006 16:52:28 +0000 Subject: Workaround for A9home crash drawing patterned lines; maybe temporary svn path=/trunk/netsurf/; revision=2768 --- riscos/plotters.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'riscos/plotters.c') diff --git a/riscos/plotters.c b/riscos/plotters.c index 81d12f3dd..00a75e6f5 100644 --- a/riscos/plotters.c +++ b/riscos/plotters.c @@ -66,6 +66,9 @@ int ro_plot_origin_x = 0; int ro_plot_origin_y = 0; float ro_plot_scale = 1.0; +/** One version of the A9home OS is incapable of drawing patterned lines */ +bool ro_plot_patterned_lines = true; + bool ro_plot_clg(colour c) { @@ -140,12 +143,14 @@ bool ro_plot_path(const draw_path * const path, int width, if (width < 1) width = 1; - if (dotted) { - dash.elements[0] = 512 * width; - dash_pattern = ‐ - } else if (dashed) { - dash.elements[0] = 1536 * width; - dash_pattern = ‐ + if (ro_plot_patterned_lines) { + if (dotted) { + dash.elements[0] = 512 * width; + dash_pattern = ‐ + } else if (dashed) { + dash.elements[0] = 1536 * width; + dash_pattern = ‐ + } } error = xcolourtrans_set_gcol(c << 8, 0, os_ACTION_OVERWRITE, 0, 0); -- cgit v1.2.3