diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-31 22:14:03 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-31 22:14:03 +0000 |
commit | f514595ccffde956e976b726c556aee215e23a73 (patch) | |
tree | 4de48c45a6d8fd4c91126df3b7cc22522d960050 | |
parent | 7370e83d605814c0d79482427dd17a2621a86c7e (diff) | |
download | netsurf-f514595ccffde956e976b726c556aee215e23a73.tar.gz netsurf-f514595ccffde956e976b726c556aee215e23a73.tar.bz2 |
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.
-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",""); |