diff options
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-x | amiga/plotters.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index acdf50eb9..1d074e855 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -132,11 +132,10 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height) gg->tmprasbuf = AllocVecTagList(width * height, NULL); if(palette_mapped == true) { - gg->bm = AllocBitMap(width, height, depth, - BMF_INTERLEAVED | BMF_DISPLAYABLE, friend); + gg->bm = AllocBitMap(width, height, depth, 0, friend); } else { - gg->bm = ami_rtg_allocbitmap(width, height, 32, - BMF_INTERLEAVED | BMF_DISPLAYABLE, friend, RGBFB_A8R8G8B8); + if(depth == 32) friend = scrn->RastPort.BitMap; + gg->bm = ami_rtg_allocbitmap(width, height, 32, 0, friend, RGBFB_A8R8G8B8); } if(!gg->bm) warn_user("NoMemory",""); |