summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-02-13 19:59:32 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-02-13 19:59:32 +0000
commitdb2f823e9990cee17b1072ce2296ef88062bc7bd (patch)
treeea2a155fab9ce679a30423dcb1c3bd672bf5b36e
parent62bc7706d992686e8021209645dbc487caf3beac (diff)
downloadnetsurf-db2f823e9990cee17b1072ce2296ef88062bc7bd.tar.gz
netsurf-db2f823e9990cee17b1072ce2296ef88062bc7bd.tar.bz2
Don't clear window before redraw or blit if the redraw didn't complete
svn path=/trunk/netsurf/; revision=11669
-rwxr-xr-xamiga/gui.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index f58395c32..c6cdaf019 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3149,13 +3149,10 @@ void ami_do_redraw_limits(struct gui_window *g, struct browser_window *bw,
clip.x1 = (x1 - sx);
clip.y1 = (y1 - sy);
- browser_window_redraw(bw, -sx, -sy, clip);
-
- current_redraw_browser = NULL;
-
- ami_clearclipreg(&browserglob);
-
- BltBitMapRastPort(browserglob.bm,
+ if(browser_window_redraw(bw, -sx, -sy, clip))
+ {
+ ami_clearclipreg(&browserglob);
+ BltBitMapRastPort(browserglob.bm,
(x0 - sx) * g->shared->bw->scale,
(y0 - sy) * g->shared->bw->scale,
g->shared->win->RPort,
@@ -3164,6 +3161,9 @@ void ami_do_redraw_limits(struct gui_window *g, struct browser_window *bw,
(x1 - x0) * g->shared->bw->scale,
(y1 - y0) * g->shared->bw->scale,
0x0C0);
+ }
+
+ current_redraw_browser = NULL;
}
void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1)
@@ -3298,14 +3298,14 @@ void ami_do_redraw(struct gui_window_2 *g)
clip.x1 = width + hcurrent;
clip.y1 = height + vcurrent;
- ami_clg(0xffffff);
glob->scale = g->bw->scale;
- browser_window_redraw(g->bw, -hcurrent, -vcurrent, clip);
-
- ami_clearclipreg(&browserglob);
- BltBitMapRastPort(browserglob.bm,0,0,g->win->RPort,bbox->Left,bbox->Top,
+ if(browser_window_redraw(g->bw, -hcurrent, -vcurrent, clip))
+ {
+ ami_clearclipreg(&browserglob);
+ BltBitMapRastPort(browserglob.bm,0,0,g->win->RPort,bbox->Left,bbox->Top,
bbox->Width,bbox->Height,0x0C0);
+ }
}
current_redraw_browser = NULL;