diff options
Diffstat (limited to 'amiga/plotters.c')
-rw-r--r-- | amiga/plotters.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index 405e512f0..b50e9a091 100644 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -118,13 +118,16 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height) gg->areabuf = AllocVecTagList(AREA_SIZE, NULL); gg->tmprasbuf = AllocVecTagList(width * height, NULL); - if(palette_mapped == true) { #ifndef __amigaos4__ - friend = scrn->RastPort.BitMap; + friend = scrn->RastPort.BitMap; #endif + + if(palette_mapped == true) { gg->bm = AllocBitMap(width, height, depth, 0, friend); } else { +#ifdef __amigaos4__ if(depth == 32) friend = scrn->RastPort.BitMap; +#endif gg->bm = ami_rtg_allocbitmap(width, height, 32, 0, friend, RGBFB_A8R8G8B8); } |