From 6389b0f7d64cfb787b9c631ac231fe57e993666b Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 31 Jan 2015 20:14:09 +0000 Subject: [PATCH] Ensure on OS3 we don't try to create a BitMap with a depth of more than 8 --- amiga/plotters.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);