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/amiga/history_local.c | |
parent | 283d921f346d44bd8d78fdac6a36b5a8516ca722 (diff) | |
download | netsurf-368b03bffb8dcf2dc2a306f29756ca882b3fee51.tar.gz netsurf-368b03bffb8dcf2dc2a306f29756ca882b3fee51.tar.bz2 |
Local history: Pass clip rectangle around as struct.
Diffstat (limited to 'frontends/amiga/history_local.c')
-rwxr-xr-x | frontends/amiga/history_local.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/frontends/amiga/history_local.c b/frontends/amiga/history_local.c index 368557dd6..8d1f4ac4a 100755 --- a/frontends/amiga/history_local.c +++ b/frontends/amiga/history_local.c @@ -84,6 +84,7 @@ static void ami_history_redraw(struct history_window *hw) { struct IBox *bbox; ULONG xs,ys; + struct rect clip; struct redraw_context ctx = { .interactive = true, .background_images = true, @@ -102,9 +103,11 @@ static void ami_history_redraw(struct history_window *hw) SetRPAttrs(glob->rp, RPTAG_APenColor, 0xffffffff, TAG_DONE); RectFill(glob->rp, 0, 0, bbox->Width - 1, bbox->Height - 1); */ - - browser_window_history_redraw_rectangle(hw->gw->bw, xs, ys, - bbox->Width + xs, bbox->Height + ys, 0, 0, &ctx); + clip.x0 = xs; + clip.y0 = ys; + clip.x1 = bbox->Width + xs; + clip.y1 = bbox->Height + ys; + browser_window_history_redraw_rectangle(hw->gw->bw, &clip, 0, 0, &ctx); ami_clearclipreg(hw->gg); ami_history_update_extent(hw); |