diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-07 20:52:50 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-07 20:52:50 +0000 |
commit | b0e61211f9d1bbcb024c855d1a864bb3fc763c6d (patch) | |
tree | 8b2f390e958b6a1116c25fdc7d8d7615ab8c5515 /amiga | |
parent | 33c48cfcd90f838df5ec2a896b40d70c48e2d48f (diff) | |
download | netsurf-b0e61211f9d1bbcb024c855d1a864bb3fc763c6d.tar.gz netsurf-b0e61211f9d1bbcb024c855d1a864bb3fc763c6d.tar.bz2 |
Clear clip regions after rendering finished.
svn path=/trunk/netsurf/; revision=6728
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index d39e02b30..8b212bacb 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2036,6 +2036,14 @@ void gui_window_set_title(struct gui_window *g, const char *title) } } +void ami_clearclipreg(struct RastPort *rp) +{ + struct Region *reg = NULL; + + reg = InstallClipRegion(rp->Layer,NULL); + if(reg) DisposeRegion(reg); +} + void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0, int x1, int y1) { ULONG hcurrent,vcurrent,xoffset,yoffset,width=800,height=600; @@ -2093,6 +2101,8 @@ void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0 current_redraw_browser = NULL; + ami_clearclipreg(currp); + // ami_update_buttons(g->shared); BltBitMapRastPort(glob.bm,x0-hcurrent,y0-vcurrent,g->shared->win->RPort,xoffset+x0-hcurrent,yoffset+y0-vcurrent,x1-x0,y1-y0,0x0C0); @@ -2221,6 +2231,8 @@ void ami_do_redraw(struct gui_window_2 *g,bool scroll) g->bw->scale,0xFFFFFF); } + ami_clearclipreg(currp); + BltBitMapRastPort(glob.bm,0,0,g->win->RPort,xoffset,yoffset,width,height,0x0C0); } |