diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2021-06-28 14:54:42 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2021-06-28 14:54:42 +0100 |
commit | d39ae4a10239481a9bf7eb8c9d6688f1e1e7cf39 (patch) | |
tree | 726c47d5f77633bf5905077fa500bcd1e0e3822f | |
parent | 407e20578ff0b8c2b3fa534f82b4cf139e914ee0 (diff) | |
download | netsurf-d39ae4a10239481a9bf7eb8c9d6688f1e1e7cf39.tar.gz netsurf-d39ae4a10239481a9bf7eb8c9d6688f1e1e7cf39.tar.bz2 |
AMIGA: Use RTG calls on OS3
Enabled for experimentation
-rw-r--r-- | frontends/amiga/plotters.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/frontends/amiga/plotters.c b/frontends/amiga/plotters.c index 215c5ebaf..fe1e58f13 100644 --- a/frontends/amiga/plotters.c +++ b/frontends/amiga/plotters.c @@ -144,16 +144,13 @@ struct gui_globals *ami_plot_ra_alloc(ULONG width, ULONG height, bool force32bit if((depth > 8) && (force32bit == false)) friend = scrn->RastPort.BitMap; } - /* OS3 is locked to using palette-mapped display even on RTG. - * To change this, comment out the below and build with the similar OS4 lines above. - * Various bits of RTG code are OS4-only and OS3 versions will need to be written, - * however a brief test reveals a negative performance benefit, so this lock to a - * palette-mapped display is most likely permanent. - */ -#warning OS3 locked to palette-mapped modes - gg->palette_mapped = true; - palette_mapped = true; - if(depth > 8) depth = 8; + if(depth < 16) { + gg->palette_mapped = true; + if(force32bit == false) palette_mapped = true; + } else { + gg->palette_mapped = false; + if(force32bit == false) palette_mapped = false; + } #endif /* Probably need to fix this next line */ |