From 79022d8ec22ea6cf6645f70d7c6d00cfec845360 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Mon, 10 Mar 2008 00:51:51 +0000 Subject: Foresee OSLib 7 and pre-OSLib 7 compatibility svn path=/trunk/netsurf/; revision=3913 --- riscos/plotters.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'riscos/plotters.c') diff --git a/riscos/plotters.c b/riscos/plotters.c index 124774450..1044df3a4 100644 --- a/riscos/plotters.c +++ b/riscos/plotters.c @@ -29,10 +29,10 @@ #include "riscos/bitmap.h" #include "riscos/image.h" #include "riscos/gui.h" +#include "riscos/oslib_pre7.h" #include "utils/log.h" - static bool ro_plot_clg(colour c); static bool ro_plot_rectangle(int x0, int y0, int width, int height, int line_width, colour c, bool dotted, bool dashed); @@ -90,7 +90,7 @@ bool ro_plot_clg(colour c) { os_error *error; error = xcolourtrans_set_gcol(c << 8, - colourtrans_SET_BG | colourtrans_USE_ECFS, + colourtrans_SET_BG_GCOL | colourtrans_USE_ECFS_GCOL, os_ACTION_OVERWRITE, 0, 0); if (error) { LOG(("xcolourtrans_set_gcol: 0x%x: %s", @@ -330,7 +330,7 @@ bool ro_plot_fill(int x0, int y0, int x1, int y1, colour c) { os_error *error; - error = xcolourtrans_set_gcol(c << 8, colourtrans_USE_ECFS, + error = xcolourtrans_set_gcol(c << 8, colourtrans_USE_ECFS_GCOL, os_ACTION_OVERWRITE, 0, 0); if (error) { LOG(("xcolourtrans_set_gcol: 0x%x: %s", -- cgit v1.2.3