summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-01 19:54:17 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-01 19:54:17 +0000
commitf661aa34e01e02af3237fd46e2a298a1b2d33ac2 (patch)
tree3470341f8b077d09fc4f55103e7bacf4bd0dfee0
parenta4dbb87a764086cb9e6b76ac73548d62c03e23e0 (diff)
downloadnetsurf-f661aa34e01e02af3237fd46e2a298a1b2d33ac2.tar.gz
netsurf-f661aa34e01e02af3237fd46e2a298a1b2d33ac2.tar.bz2
Ensure the window is clear before drawing new content
-rw-r--r--amiga/gui.c2
-rw-r--r--amiga/rtg.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 366526800..114e6ab99 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -5071,6 +5071,8 @@ static void gui_window_new_content(struct gui_window *g)
g->shared->oldv = 0;
g->favicon = NULL;
ami_plot_release_pens(&g->shared->shared_pens);
+ ami_rtg_rectfill(gwin->win->RPort, bbox->Left, bbox->Top,
+ bbox->Width+bbox->Left, bbox->Height+bbox->Top, 0xffffffff);
ami_menu_update_disabled(g, c);
ami_gui_update_hotlist_button(g->shared);
ami_gui_scroller_update(g->shared);
diff --git a/amiga/rtg.c b/amiga/rtg.c
index e1562841e..fbefd55a1 100644
--- a/amiga/rtg.c
+++ b/amiga/rtg.c
@@ -50,6 +50,7 @@ void ami_rtg_rectfill(struct RastPort *rp, UWORD min_x, UWORD min_y,
UWORD max_x, UWORD max_y, ULONG colour)
{
if(P96Base == NULL) {
+ SetAPen(rp, 2); /* white */
return RectFill(rp, min_x, min_y, max_x, max_y);
} else {
return p96RectFill(rp, min_x, min_y, max_x, max_y, colour);