diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-10 11:15:20 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-10 11:15:20 +0100 |
commit | 368b03bffb8dcf2dc2a306f29756ca882b3fee51 (patch) | |
tree | d8bc4572880284297eed622c3c9bed0095191841 /frontends/framebuffer | |
parent | 283d921f346d44bd8d78fdac6a36b5a8516ca722 (diff) | |
download | netsurf-368b03bffb8dcf2dc2a306f29756ca882b3fee51.tar.gz netsurf-368b03bffb8dcf2dc2a306f29756ca882b3fee51.tar.bz2 |
Local history: Pass clip rectangle around as struct.
Diffstat (limited to 'frontends/framebuffer')
-rw-r--r-- | frontends/framebuffer/localhistory.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/frontends/framebuffer/localhistory.c b/frontends/framebuffer/localhistory.c index 3192f0747..b91c9470b 100644 --- a/frontends/framebuffer/localhistory.c +++ b/frontends/framebuffer/localhistory.c @@ -36,6 +36,7 @@ localhistory_redraw(fbtk_widget_t *widget, fbtk_callback_info *cbi) { struct gui_localhistory *glh = cbi->context; nsfb_bbox_t rbox; + struct rect clip; struct redraw_context ctx = { .interactive = true, @@ -53,12 +54,13 @@ localhistory_redraw(fbtk_widget_t *widget, fbtk_callback_info *cbi) nsfb_plot_rectangle_fill(fbtk_get_nsfb(widget), &rbox, 0xffffffff); + clip.x0 = glh->scrollx; + clip.y0 = glh->scrolly; + clip.x1 = fbtk_get_width(widget) + glh->scrollx; + clip.y0 = fbtk_get_height(widget) + glh->scrolly; + browser_window_history_redraw_rectangle(glh->bw, - glh->scrollx, - glh->scrolly, - fbtk_get_width(widget) + glh->scrollx, - fbtk_get_height(widget) + glh->scrolly, - 0, 0, &ctx); + &clip, 0, 0, &ctx); nsfb_update(fbtk_get_nsfb(widget), &rbox); |