From f661aa34e01e02af3237fd46e2a298a1b2d33ac2 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 1 Feb 2015 19:54:17 +0000 Subject: Ensure the window is clear before drawing new content --- amiga/gui.c | 2 ++ amiga/rtg.c | 1 + 2 files changed, 3 insertions(+) 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); -- cgit v1.2.3