summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-02 23:45:49 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-02 23:45:49 +0000
commita7b866e824f7ce4fd7fa1ec9945ce670a8681dd9 (patch)
treef658509b53143ffc17a4d7809ef8815ed20b5f87 /amiga/plotters.c
parent86757143dfb0748e351976620a8b1176f0063a8c (diff)
downloadnetsurf-a7b866e824f7ce4fd7fa1ec9945ce670a8681dd9.tar.gz
netsurf-a7b866e824f7ce4fd7fa1ec9945ce670a8681dd9.tar.bz2
Always use a friend bitmap on OS3
Diffstat (limited to 'amiga/plotters.c')
-rw-r--r--amiga/plotters.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 405e512f0..b50e9a091 100644
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -118,13 +118,16 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
gg->areabuf = AllocVecTagList(AREA_SIZE, NULL);
gg->tmprasbuf = AllocVecTagList(width * height, NULL);
- if(palette_mapped == true) {
#ifndef __amigaos4__
- friend = scrn->RastPort.BitMap;
+ friend = scrn->RastPort.BitMap;
#endif
+
+ if(palette_mapped == true) {
gg->bm = AllocBitMap(width, height, depth, 0, friend);
} else {
+#ifdef __amigaos4__
if(depth == 32) friend = scrn->RastPort.BitMap;
+#endif
gg->bm = ami_rtg_allocbitmap(width, height, 32, 0, friend, RGBFB_A8R8G8B8);
}