diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-02 00:32:34 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-02 00:32:34 +0000 |
commit | 21f142a7fa12cc89420ac9439c83f06af249dc39 (patch) | |
tree | 1965faabb33362a23303c5446914fd18076f293a /amiga/plotters.c | |
parent | 0aa30619293309d4bcab3cc0419005fd2e772618 (diff) | |
download | netsurf-21f142a7fa12cc89420ac9439c83f06af249dc39.tar.gz netsurf-21f142a7fa12cc89420ac9439c83f06af249dc39.tar.bz2 |
Friend the screen bitmap for <= 8-bit modes, but only on OS3 as this causes OS4 to freeze
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-x | amiga/plotters.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index 3c1a09099..88021ee29 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -113,6 +113,8 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height) struct BitMap *friend = NULL; depth = GetBitMapAttr(scrn->RastPort.BitMap, BMA_DEPTH); + LOG(("Screen depth = %d", depth)); + #ifdef __amigaos4__ if(depth < 16) { palette_mapped = true; @@ -131,7 +133,10 @@ 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) { + if(palette_mapped == true) { +#ifndef __amigaos4__ + friend = scrn->RastPort.BitMap; +#endif gg->bm = AllocBitMap(width, height, depth, 0, friend); } else { if(depth == 32) friend = scrn->RastPort.BitMap; |