mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
TmpRas should be in chip mem for OS3/AGA
This commit is contained in:
parent
a28be12270
commit
7c14bff469
@ -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","");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user