summaryrefslogtreecommitdiff
path: root/riscos/plotters.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-03-10 00:51:51 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-03-10 00:51:51 +0000
commit79022d8ec22ea6cf6645f70d7c6d00cfec845360 (patch)
treefa7bcc7bbdd44c6ef8b7eadd3aae13ee242ba4d3 /riscos/plotters.c
parentb79b0dbd82ba9abb775f4dd20b68335a303e9a9d (diff)
downloadnetsurf-79022d8ec22ea6cf6645f70d7c6d00cfec845360.tar.gz
netsurf-79022d8ec22ea6cf6645f70d7c6d00cfec845360.tar.bz2
Foresee OSLib 7 and pre-OSLib 7 compatibility
svn path=/trunk/netsurf/; revision=3913
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 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",