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/tree.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/tree.c')
-rwxr-xr-x | amiga/tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/amiga/tree.c b/amiga/tree.c index c474a99bd..efd8f450c 100755 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -1235,6 +1235,10 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data) struct treeview_window *twin = data; struct IBox *bbox; int pos_x, pos_y; + struct redraw_context ctx = { + .interactive = true, + .plot = &amiplot + }; if(!twin->win) return; // if(tree_get_redraw(twin->tree) == false) return; @@ -1249,7 +1253,7 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data) if(x - pos_x + width > bbox->Width) width = bbox->Width - (x - pos_x); if(y - pos_y + height > bbox->Height) height = bbox->Height - (y - pos_y); - tree_draw(twin->tree, -pos_x, -pos_y, x, y, width, height); + tree_draw(twin->tree, -pos_x, -pos_y, x, y, width, height, &ctx); BltBitMapRastPort(twin->globals.bm, x - pos_x, y - pos_y, twin->win->RPort, bbox->Left + x - pos_x, bbox->Top + y - pos_y, width, height, 0x0C0); |