From 79c5485e27526c2f20a540bbdb73153466d567d6 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 25 Feb 2012 18:42:33 +0000 Subject: Add tiled refresh, with tiles of max size option_redraw_tile_size. This reduces the size of our off-screen bitmap and associated memory. Only works with browser windows at present. History and treeviews still have full window refresh/bitmap. Setting the option to 0 brings back the old behaviour. svn path=/trunk/netsurf/; revision=13468 --- amiga/plotters.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'amiga/plotters.c') diff --git a/amiga/plotters.c b/amiga/plotters.c index 2db18a7a2..a1112de47 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -121,8 +121,9 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height) struct BitMap *friend = NULL; /* Required to be NULL for Cairo and ARGB bitmaps */ - if(!width) width = scrn->Width; - if(!height) height = scrn->Width; + if(option_redraw_tile_size <= 0) option_redraw_tile_size = scrn->Width; + if(!width) width = option_redraw_tile_size; + if(!height) height = option_redraw_tile_size; gg->layerinfo = NewLayerInfo(); gg->areabuf = AllocVec(100,MEMF_PRIVATE | MEMF_CLEAR); -- cgit v1.2.3