diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-04-28 19:56:31 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-12-31 14:01:29 +0000 |
commit | a83afda7918cdb7ebc28db204ceb3e0f3d1cb0d3 (patch) | |
tree | ce58ac006972c20919509e54fbbcba87d806f5d3 /frontends | |
parent | 0804c43bf1afa0cb9d851ceb89e29ec8096f272f (diff) | |
download | netsurf-a83afda7918cdb7ebc28db204ceb3e0f3d1cb0d3.tar.gz netsurf-a83afda7918cdb7ebc28db204ceb3e0f3d1cb0d3.tar.bz2 |
Disable ExtMem in palette-mapped modes
Something handling palette mapped images causes a freeze.
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/amiga/gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index a51d8c2db..f485e0b6b 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -545,6 +545,10 @@ static void ami_set_screen_defaults(struct Screen *screen) nsoption_default_set_int(redraw_tile_size_x, screen->Width); nsoption_default_set_int(redraw_tile_size_y, screen->Height); + if((screen != NULL) && (GetBitMapAttr(screen->RastPort.BitMap, BMA_DEPTH) < 24)) { + nsoption_set_bool(use_extmem, false); + } + /* set system colours for amiga ui */ colour_option_from_pen(FILLPEN, NSOPTION_sys_colour_ActiveBorder, screen, 0x00000000); colour_option_from_pen(FILLPEN, NSOPTION_sys_colour_ActiveCaption, screen, 0x00dddddd); |