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 /riscos/history.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 'riscos/history.c')
-rw-r--r-- | riscos/history.c | 8 |
1 files changed, 5 insertions, 3 deletions
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", |