summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-02 18:10:43 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-02 18:10:43 +0000
commit7d41e04b61162d3cb1f0032100d29ef7897b2d83 (patch)
tree5587b322d516c96049105e923be95fbfa9a663e3 /amiga/gui.c
parent54a966f6ff1b2d09d3db94560b67a2343e8684e1 (diff)
downloadnetsurf-7d41e04b61162d3cb1f0032100d29ef7897b2d83.tar.gz
netsurf-7d41e04b61162d3cb1f0032100d29ef7897b2d83.tar.bz2
We don't need to use P96 for RectFill
Diffstat (limited to 'amiga/gui.c')
-rw-r--r--amiga/gui.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 3ec33f6e7..52fb0ffa8 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -142,7 +142,6 @@
#include "amiga/plotters.h"
#include "amiga/plugin_hack.h"
#include "amiga/print.h"
-#include "amiga/rtg.h"
#include "amiga/schedule.h"
#include "amiga/search.h"
#include "amiga/theme.h"
@@ -2873,21 +2872,18 @@ void ami_switch_tab(struct gui_window_2 *gwin, bool redraw)
RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_URL],
gwin->win, NULL, STRINGA_TextVal, "", TAG_DONE);
- ami_rtg_rectfill(gwin->win->RPort, bbox->Left, bbox->Top,
- bbox->Width+bbox->Left, bbox->Height+bbox->Top, 0xffffffff);
-
+ ami_plot_clear_bbox(gwin->win->RPort, bbox);
ami_gui_free_space_box(bbox);
return;
}
- ami_plot_release_pens(&gwin->shared_pens);
+ ami_plot_release_pens(&browserglob.shared_pens);
ami_update_buttons(gwin);
ami_menu_update_disabled(gwin->gw, browser_window_get_content(gwin->gw->bw));
if(redraw)
{
- ami_rtg_rectfill(gwin->win->RPort, bbox->Left, bbox->Top,
- bbox->Width+bbox->Left, bbox->Height+bbox->Top, 0xffffffff);
+ ami_plot_clear_bbox(gwin->win->RPort, bbox);
browser_window_update(gwin->gw->bw, false);
gui_window_set_scroll(gwin->gw,
@@ -4197,7 +4193,7 @@ static void gui_window_destroy(struct gui_window *g)
return;
}
- ami_plot_release_pens(&g->shared->shared_pens);
+ ami_plot_release_pens(&browserglob.shared_pens);
ami_schedule_redraw_remove(g->shared);
ami_schedule(-1, ami_gui_refresh_favicon, g->shared);
@@ -5076,7 +5072,7 @@ static void gui_window_new_content(struct gui_window *g)
g->shared->oldh = 0;
g->shared->oldv = 0;
g->favicon = NULL;
- ami_plot_release_pens(&g->shared->shared_pens);
+ ami_plot_release_pens(&browserglob.shared_pens);
ami_menu_update_disabled(g, c);
ami_gui_update_hotlist_button(g->shared);
ami_gui_scroller_update(g->shared);