summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-09 22:31:10 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-09 22:31:10 +0100
commitbc5918ebbc01a4d5022c8b3b308af41318097c84 (patch)
tree0f981c49d7511d7b77e6fa84c3f8f1e67f589684 /amiga/plotters.c
parente4d2677c80985914b2b37efd5d0a70a1856741b2 (diff)
downloadnetsurf-bc5918ebbc01a4d5022c8b3b308af41318097c84.tar.gz
netsurf-bc5918ebbc01a4d5022c8b3b308af41318097c84.tar.bz2
allocate our bitmaps as BMF_DISPLAYABLE as this can improve performance when blitting to the screen
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c5
1 files changed, 3 insertions, 2 deletions
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","");