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 --- windows/drawable.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'windows/drawable.c') diff --git a/windows/drawable.c b/windows/drawable.c index 5b2dea967..cdb9cc2b4 100644 --- a/windows/drawable.c +++ b/windows/drawable.c @@ -305,6 +305,10 @@ nsws_drawable_paint(struct gui_window *gw, HWND hwnd) { struct rect clip; PAINTSTRUCT ps; + struct redraw_context ctx = { + .interactive = true, + .plot = &win_plotters + }; BeginPaint(hwnd, &ps); @@ -319,7 +323,7 @@ nsws_drawable_paint(struct gui_window *gw, HWND hwnd) browser_window_redraw(gw->bw, -gw->scrollx / gw->bw->scale, -gw->scrolly / gw->bw->scale, - &clip); + &clip, &ctx); } EndPaint(hwnd, &ps); -- cgit v1.2.3