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 --- riscos/treeview.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'riscos/treeview.c') diff --git a/riscos/treeview.c b/riscos/treeview.c index 0206a7c29..c5f1cd526 100644 --- a/riscos/treeview.c +++ b/riscos/treeview.c @@ -357,8 +357,6 @@ void ro_treeview_redraw(wimp_draw *redraw) */ } - plot = ro_plotters; - error = xwimp_redraw_window(redraw, &more); if (error) { LOG(("xwimp_redraw_window: 0x%x: %s", @@ -380,7 +378,11 @@ void ro_treeview_redraw(wimp_draw *redraw) void ro_treeview_redraw_loop(wimp_draw *redraw, ro_treeview *tv, osbool more) { - os_error *error; + os_error *error; + struct redraw_context ctx = { + .interactive = true, + .plot = &ro_plotters + }; while (more) { ro_plot_origin_x = redraw->box.x0 - redraw->xscroll; @@ -394,7 +396,8 @@ void ro_treeview_redraw_loop(wimp_draw *redraw, ro_treeview *tv, osbool more) ((ro_plot_origin_y+tv->origin.y) -redraw->clip.y1)/2, (redraw->clip.x1 - redraw->clip.x0)/2, - (redraw->clip.y1 - redraw->clip.y0)/2); + (redraw->clip.y1 - redraw->clip.y0)/2, + &ctx); /* Put the graphcis window back how the Wimp set it. */ clip.x0 = (redraw->clip.x0 - ro_plot_origin_x) / 2; -- cgit v1.2.3