diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-02-13 18:09:43 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-02-13 18:09:43 +0000 |
commit | 593ec1fbeab32d598bc4cc5de42bb0887ad0d520 (patch) | |
tree | d7f95372c4caf1a860d414a67bb8fb78a6df0820 /frontends/amiga/gui.c | |
parent | 075e9c0258bd75307a90b3e6bd576742bf212b08 (diff) | |
download | netsurf-593ec1fbeab32d598bc4cc5de42bb0887ad0d520.tar.gz netsurf-593ec1fbeab32d598bc4cc5de42bb0887ad0d520.tar.bz2 |
Manage shared pens internally unless we need multiple lists (eg. per browser_window)
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index e6f23abe6..973f4e787 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -885,7 +885,7 @@ static void ami_openscreen(void) static void ami_openscreenfirst(void) { ami_openscreen(); - if(browserglob == NULL) browserglob = ami_plot_ra_alloc(0, 0, false); + if(browserglob == NULL) browserglob = ami_plot_ra_alloc(0, 0, false, false); ami_theme_throbber_setup(); } @@ -3530,7 +3530,7 @@ static void ami_do_redraw_tiled(struct gui_window_2 *gwin, bool busy, int tile_x_scale = (int)(tile_size_x / gwin->gw->scale); int tile_y_scale = (int)(tile_size_y / gwin->gw->scale); - glob->shared_pens = gwin->shared_pens; /* do we need this?? */ + ami_plot_ra_set_pen_list(glob, gwin->shared_pens); if(top < 0) { height += top; @@ -4909,7 +4909,7 @@ static void ami_do_redraw(struct gui_window_2 *gwin) } else { - browserglob->shared_pens = gwin->shared_pens; + ami_plot_ra_set_pen_list(browserglob, gwin->shared_pens); temprp = browserglob->rp; browserglob->rp = gwin->win->RPort; clip.x0 = bbox->Left; |