summaryrefslogtreecommitdiff
path: root/riscos/treeview.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-30 15:48:07 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-30 15:48:07 +0000
commiteddae6af0663243a2677674d501f9a87d55798f5 (patch)
tree08562171f870a6b592d624adfbfd0d6fa11fcdcb /riscos/treeview.c
parenta5dc6b9e6637c85d18510ac6446ee4a8a7955e7b (diff)
downloadnetsurf-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/treeview.c')
-rw-r--r--riscos/treeview.c11
1 files changed, 7 insertions, 4 deletions
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;