diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-02-25 18:42:33 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-02-25 18:42:33 +0000 |
commit | 79c5485e27526c2f20a540bbdb73153466d567d6 (patch) | |
tree | cdfe36d691571bdc6bbfb979c1baebf2539371db /amiga/plotters.c | |
parent | 174b52a0fd055d47aa95cdfbe818203afcf0b75b (diff) | |
download | netsurf-79c5485e27526c2f20a540bbdb73153466d567d6.tar.gz netsurf-79c5485e27526c2f20a540bbdb73153466d567d6.tar.bz2 |
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
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-x | amiga/plotters.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |