diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-30 15:48:07 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-30 15:48:07 +0000 |
commit | eddae6af0663243a2677674d501f9a87d55798f5 (patch) | |
tree | 08562171f870a6b592d624adfbfd0d6fa11fcdcb /amiga/thumbnail.c | |
parent | a5dc6b9e6637c85d18510ac6446ee4a8a7955e7b (diff) | |
download | netsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.gz netsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.bz2 |
Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
Diffstat (limited to 'amiga/thumbnail.c')
-rwxr-xr-x | amiga/thumbnail.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/thumbnail.c b/amiga/thumbnail.c index be15877de..af0375ba8 100755 --- a/amiga/thumbnail.c +++ b/amiga/thumbnail.c @@ -42,6 +42,10 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, struct BitScaleArgs bsa; int plot_width; int plot_height; + struct redraw_context ctx = { + .interactive = false, + .plot = &amiplot + }; plot_width = MIN(content_get_width(content), 1024); plot_height = ((plot_width * bitmap->height) + (bitmap->width / 2)) / @@ -55,9 +59,8 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, bitmap->nativebmheight = bitmap->height; ami_clearclipreg(&browserglob); current_redraw_browser = curbw; - plot = amiplot; - thumbnail_redraw(content, plot_width, plot_height); + thumbnail_redraw(content, plot_width, plot_height, &ctx); current_redraw_browser = NULL; |