mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-13 14:29:20 +03:00
Clear clip regions after rendering finished.
svn path=/trunk/netsurf/; revision=6728
This commit is contained in:
parent
33c48cfcd9
commit
b0e61211f9
12
amiga/gui.c
12
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)
|
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;
|
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;
|
current_redraw_browser = NULL;
|
||||||
|
|
||||||
|
ami_clearclipreg(currp);
|
||||||
|
|
||||||
// ami_update_buttons(g->shared);
|
// 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);
|
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);
|
g->bw->scale,0xFFFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ami_clearclipreg(currp);
|
||||||
|
|
||||||
BltBitMapRastPort(glob.bm,0,0,g->win->RPort,xoffset,yoffset,width,height,0x0C0);
|
BltBitMapRastPort(glob.bm,0,0,g->win->RPort,xoffset,yoffset,width,height,0x0C0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user