mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-02 07:35:25 +03:00
Don't unmap ExtMem immediately as:
(a) it is upsetting the gif decoder (although I suspect it is caused by the OS struggling with the excessive remaps) (b) We are probably going to need to map it back in imminently for display
This commit is contained in:
parent
36b26b861f
commit
8af9a8407b
@ -277,7 +277,8 @@ void amiga_bitmap_modified(void *bitmap)
|
||||
struct bitmap *bm = bitmap;
|
||||
|
||||
#ifdef __amigaos4__
|
||||
amiga_bitmap_unmap_buffer(bm);
|
||||
/* unmap the buffer after 0.5s - we might need it imminently */
|
||||
ami_schedule(500, amiga_bitmap_unmap_buffer, bm);
|
||||
#endif
|
||||
|
||||
if(bm->nativebm) ami_rtg_freebitmap(bm->nativebm);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008-2015 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
||||
* Copyright 2008-2016 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
||||
*
|
||||
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
||||
*
|
||||
@ -616,6 +616,11 @@ static nserror ami_set_options(struct nsoption_s *defaults)
|
||||
|
||||
/* Some OS-specific overrides */
|
||||
#ifdef __amigaos4__
|
||||
if(!LIB_IS_AT_LEAST((struct Library *)SysBase, 53, 89)) {
|
||||
/* Disable ExtMem usage pre-OS4.1FEU1 */
|
||||
nsoption_set_bool(use_extmem, false);
|
||||
}
|
||||
|
||||
if(codeset == 0) codeset = 4; /* ISO-8859-1 */
|
||||
const char *encname = (const char *)ObtainCharsetInfo(DFCS_NUMBER, codeset,
|
||||
DFCS_MIMENAME);
|
||||
|
Loading…
x
Reference in New Issue
Block a user