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 --- cocoa/HistoryView.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cocoa/HistoryView.m') diff --git a/cocoa/HistoryView.m b/cocoa/HistoryView.m index 65f971d28..a68418416 100644 --- a/cocoa/HistoryView.m +++ b/cocoa/HistoryView.m @@ -56,10 +56,15 @@ { [[NSColor clearColor] set]; [NSBezierPath fillRect: rect]; + + struct redraw_context ctx = { + .interactive = true, + .plot = &cocoa_plotters + }; cocoa_set_clip( rect ); - history_redraw( browser->history ); + history_redraw( browser->history, &ctx ); } - (void) mouseUp: (NSEvent *)theEvent; -- cgit v1.2.3