summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-05 11:04:17 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-05 11:04:17 +0100
commit337b0f6724144800b9d226e1f949642ec200b511 (patch)
tree0925ce88e6fb152c9cfcd10d348517e1d741b531 /amiga/plotters.c
parent34154ebb99c9ce199e6c9c9ed5993e017023c697 (diff)
downloadnetsurf-337b0f6724144800b9d226e1f949642ec200b511.tar.gz
netsurf-337b0f6724144800b9d226e1f949642ec200b511.tar.bz2
Allow forcing palette-mapped mode by setting cairo_renderer:-1
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index c581711b0..348e66e94 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -131,10 +131,10 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
struct BitMap *friend = NULL; /* Required to be NULL for Cairo and ARGB bitmaps */
if(dri = GetScreenDrawInfo(scrn)) {
- if(dri->dri_Depth < 16) {
+ if((dri->dri_Depth < 16) || (nsoption_int(cairo_renderer) == -1)) {
palette_mapped = true;
depth = dri->dri_Depth; /* this is always wrong */
- // friend = scrn->RastPort.BitMap;
+ // friend = scrn->RastPort.BitMap;
} else {
palette_mapped = false;
}
@@ -578,7 +578,7 @@ bool ami_arc(int x, int y, int radius, int angle1, int angle2, const plot_style_
LOG(("[ami_plotter] Entered ami_arc()"));
#endif
- if((nsoption_int(cairo_renderer) == 0) || (palette_mapped == true)) {
+ if((nsoption_int(cairo_renderer) <= 0) || (palette_mapped == true)) {
/* TODO: gfx.lib plotter needs arc support */
/* eg. http://www.crbond.com/primitives.htm CommonFuncsPPC.lha */
ami_plot_setapen(style->fill_colour);