summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-07 21:03:42 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-07 21:03:42 +0100
commit391d483c9ded316cd3c40b77d37eb5ed021cd250 (patch)
treeb9bc993e57ffab5769f5efd885bf24792121971d /amiga
parent9fac1daff4a99714ab95ff076ee7891b86bfc5e4 (diff)
downloadnetsurf-391d483c9ded316cd3c40b77d37eb5ed021cd250.tar.gz
netsurf-391d483c9ded316cd3c40b77d37eb5ed021cd250.tar.bz2
expose function to get current screen palette-mapped status
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/plotters.c5
-rwxr-xr-xamiga/plotters.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index eb39550a0..bfa881362 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -986,3 +986,8 @@ bool ami_path(const float *p, unsigned int n, colour fill, float width,
#endif
return true;
}
+
+bool ami_plot_screen_is_palettemapped(void)
+{
+ return palette_mapped;
+}
diff --git a/amiga/plotters.h b/amiga/plotters.h
index 94dfaee6e..db767b60a 100755
--- a/amiga/plotters.h
+++ b/amiga/plotters.h
@@ -65,6 +65,7 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height);
void ami_free_layers(struct gui_globals *gg);
void ami_clearclipreg(struct gui_globals *gg);
void ami_plot_release_pens(struct MinList *shared_pens);
+bool ami_plot_screen_is_palettemapped(void);
struct gui_globals *glob;
#endif