From f514595ccffde956e976b726c556aee215e23a73 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 31 Jan 2015 22:14:03 +0000 Subject: Don't allocate our off-screen render area as BMF_DISPLAYABLE, as it is never displayed. Befriend the screen BitMap but only if we're 32-bit on both. --- amiga/plotters.c | 7 +++---- 1 file 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",""); -- cgit v1.2.3