summaryrefslogtreecommitdiff
path: root/framebuffer/localhistory.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 /framebuffer/localhistory.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 'framebuffer/localhistory.c')
-rw-r--r--framebuffer/localhistory.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/framebuffer/localhistory.c b/framebuffer/localhistory.c
index d8f2b048d..78c1a8d90 100644
--- a/framebuffer/localhistory.c
+++ b/framebuffer/localhistory.c
@@ -61,6 +61,11 @@ localhistory_redraw(fbtk_widget_t *widget, fbtk_callback_info *cbi)
struct gui_localhistory *glh = cbi->context;
nsfb_bbox_t rbox;
+ struct redraw_context ctx = {
+ .interactive = true,
+ .plot = &fb_plotters
+ };
+
rbox.x0 = fbtk_get_absx(widget);
rbox.y0 = fbtk_get_absy(widget);
@@ -76,7 +81,7 @@ localhistory_redraw(fbtk_widget_t *widget, fbtk_callback_info *cbi)
glh->scrolly,
fbtk_get_width(widget) + glh->scrollx,
fbtk_get_height(widget) + glh->scrolly,
- 0, 0);
+ 0, 0, &ctx);
nsfb_update(fbtk_get_nsfb(widget), &rbox);