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/history.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'riscos/history.c') diff --git a/riscos/history.c b/riscos/history.c index 93cd65ab7..09770f90f 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -139,8 +139,10 @@ void ro_gui_history_redraw(wimp_draw *redraw) { osbool more; os_error *error; - - plot = ro_plotters; + struct redraw_context ctx = { + .interactive = true, + .plot = &ro_plotters + }; error = xwimp_redraw_window(redraw, &more); if (error) { @@ -152,7 +154,7 @@ void ro_gui_history_redraw(wimp_draw *redraw) while (more) { ro_plot_origin_x = redraw->box.x0 - redraw->xscroll; ro_plot_origin_y = redraw->box.y1 - redraw->yscroll; - history_redraw(history_current); + history_redraw(history_current, &ctx); error = xwimp_get_rectangle(redraw, &more); if (error) { LOG(("xwimp_get_rectangle: 0x%x: %s", -- cgit v1.2.3