From bc5918ebbc01a4d5022c8b3b308af41318097c84 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 9 Aug 2012 22:31:10 +0100 Subject: allocate our bitmaps as BMF_DISPLAYABLE as this can improve performance when blitting to the screen --- amiga/plotters.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'amiga/plotters.c') diff --git a/amiga/plotters.c b/amiga/plotters.c index 721596f02..941587ed0 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -154,10 +154,11 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height) gg->tmprasbuf = AllocVec(width * height, MEMF_PRIVATE | MEMF_CLEAR); if(palette_mapped == true) { - gg->bm = AllocBitMap(width, height, depth, BMF_INTERLEAVED, friend); + gg->bm = AllocBitMap(width, height, depth, + BMF_INTERLEAVED | BMF_DISPLAYABLE, friend); } else { gg->bm = p96AllocBitMap(width, height, 32, - BMF_INTERLEAVED, friend, RGBFB_A8R8G8B8); + BMF_INTERLEAVED | BMF_DISPLAYABLE, friend, RGBFB_A8R8G8B8); } if(!gg->bm) warn_user("NoMemory",""); -- cgit v1.2.3