summaryrefslogtreecommitdiff
path: root/riscos/plotters.c
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2006-07-16 16:52:28 +0000
committerAdrian Lees <adrian@aemulor.com>2006-07-16 16:52:28 +0000
commit81512fa939c2cfa759b80a48a89f39fdc5238cd4 (patch)
tree2e95588d527bb7d52c1dcf9f4ddf82c38b19c752 /riscos/plotters.c
parent2c4fb5d683777f48c62ca3e1bf1bc0a86f4e5f98 (diff)
downloadnetsurf-81512fa939c2cfa759b80a48a89f39fdc5238cd4.tar.gz
netsurf-81512fa939c2cfa759b80a48a89f39fdc5238cd4.tar.bz2
Workaround for A9home crash drawing patterned lines; maybe temporary
svn path=/trunk/netsurf/; revision=2768
Diffstat (limited to 'riscos/plotters.c')
-rw-r--r--riscos/plotters.c17
1 files changed, 11 insertions, 6 deletions
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 = &dash;
- } else if (dashed) {
- dash.elements[0] = 1536 * width;
- dash_pattern = &dash;
+ if (ro_plot_patterned_lines) {
+ if (dotted) {
+ dash.elements[0] = 512 * width;
+ dash_pattern = &dash;
+ } else if (dashed) {
+ dash.elements[0] = 1536 * width;
+ dash_pattern = &dash;
+ }
}
error = xcolourtrans_set_gcol(c << 8, 0, os_ACTION_OVERWRITE, 0, 0);