summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-31 20:14:09 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-31 20:14:09 +0000
commit6389b0f7d64cfb787b9c631ac231fe57e993666b (patch)
tree7743eefe9b40fc2e64fbb83832f57546abc96f37 /amiga/plotters.c
parent9ac9866521e48933389dcf05f1ec5523f36b3435 (diff)
downloadnetsurf-6389b0f7d64cfb787b9c631ac231fe57e993666b.tar.gz
Ensure on OS3 we don't try to create a BitMap with a depth of more than 8
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 6bb4243d3..1da380bc4 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -113,14 +113,17 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
struct BitMap *friend = NULL;
depth = GetBitMapAttr(scrn->RastPort.BitMap, BMA_DEPTH);
+#ifdef __amigaos4__
if(depth < 16) {
palette_mapped = true;
} else {
palette_mapped = false;
}
-#ifndef __amigaos4__
+#else
palette_mapped = true; /* only supporting palette mapped screens on OS3 for now */
+ if(depth > 8) depth = 8;
#endif
+
if(!width) width = nsoption_int(redraw_tile_size_x);
if(!height) height = nsoption_int(redraw_tile_size_y);