From edaa9c29f22a550ddc7c8e1f02ff6d9dedf9a5b1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 13 Feb 2017 00:18:32 +0000 Subject: Remove use of global context data from Amiga frontend --- frontends/amiga/history_local.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'frontends/amiga/history_local.c') diff --git a/frontends/amiga/history_local.c b/frontends/amiga/history_local.c index 3d1c6f39b..8cce869c9 100755 --- a/frontends/amiga/history_local.c +++ b/frontends/amiga/history_local.c @@ -87,7 +87,8 @@ static void ami_history_redraw(struct history_window *hw) struct redraw_context ctx = { .interactive = true, .background_images = true, - .plot = &amiplot + .plot = &amiplot, + .priv = hw->gg }; GetAttr(SCROLLER_Top,hw->objects[OID_HSCROLL],(ULONG *)&xs); @@ -97,16 +98,14 @@ static void ami_history_redraw(struct history_window *hw) return; } - glob = hw->gg; - +/* core should clear this area for us 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); - ami_gui_set_default_gg(); - ami_clearclipreg(hw->gg); ami_history_update_extent(hw); -- cgit v1.2.1