summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-08-16 12:41:21 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-08-16 12:41:21 +0100
commit7c14bff469c9d1bd027555b3fb7a820853f0a02e (patch)
tree274f7934000c07ab37d74d19c772ee5f852d52db /amiga/plotters.c
parenta28be122703cb0331d4b9c56ea38f233703e8ccb (diff)
downloadnetsurf-7c14bff469c9d1bd027555b3fb7a820853f0a02e.tar.gz
netsurf-7c14bff469c9d1bd027555b3fb7a820853f0a02e.tar.bz2
TmpRas should be in chip mem for OS3/AGA
Diffstat (limited to 'amiga/plotters.c')
-rw-r--r--amiga/plotters.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 09b08354c..26479ad20 100644
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -167,7 +167,12 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
if((!gg->areabuf) || (!gg->rp->AreaInfo)) warn_user("NoMemory","");
InitArea(gg->rp->AreaInfo,gg->areabuf, AREA_SIZE/5);
+#ifdef __amigaos4__
gg->rp->TmpRas = AllocVecTagList(sizeof(struct TmpRas), NULL);
+#else
+ /* TmpRas needs to be in chip mem on OS3 */
+ gg->rp->TmpRas = AllocVec(sizeof(struct TmpRas), MEMF_CHIP);
+#endif
if((!gg->tmprasbuf) || (!gg->rp->TmpRas)) warn_user("NoMemory","");