Clear clip regions after rendering finished.

svn path=/trunk/netsurf/; revision=6728
This commit is contained in:
Chris Young 2009-03-07 20:52:50 +00:00
parent 33c48cfcd9
commit b0e61211f9
1 changed files with 12 additions and 0 deletions

View File

@ -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);
}