From eddae6af0663243a2677674d501f9a87d55798f5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 30 Jun 2011 15:48:07 +0000 Subject: 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 --- atari/treeview.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'atari/treeview.c') diff --git a/atari/treeview.c b/atari/treeview.c index aaa3621af..9b925f6dc 100755 --- a/atari/treeview.c +++ b/atari/treeview.c @@ -312,6 +312,11 @@ void atari_treeview_redraw( NSTREEVIEW tv) GRECT work; WindGetGrect( tv->window, WF_WORKXYWH, &work ); + struct redraw_context ctx = { + .interactive = true, + .plot = &atari_plotters + }; + plotter->resize(plotter, work.g_w, work.g_h); plotter->move(plotter, work.g_x, work.g_y ); @@ -339,7 +344,7 @@ void atari_treeview_redraw( NSTREEVIEW tv) if (rc_intersect((GRECT *)&tv->rdw_area,(GRECT *)&todo)) { tree_draw(tv->tree, -tv->window->xpos*16, -tv->window->ypos*16, - todo[0], todo[1], todo[2], todo[3] + todo[0], todo[1], todo[2], todo[3], &ctx ); } if (wind_get(tv->window->handle, WF_NEXTXYWH, -- cgit v1.2.3