Re-check window dimensions before copying contents in. This stops window borders
getting corrupted and crashes when resizing (unsat bug#63) svn path=/trunk/netsurf/; revision=7628
This commit is contained in:
parent
b0962da79a
commit
6770f7b9f9
|
@ -2318,9 +2318,7 @@ void ami_do_redraw(struct gui_window_2 *g,bool scroll)
|
|||
|
||||
if(g->bw->reformat_pending)
|
||||
{
|
||||
Forbid();
|
||||
browser_window_reformat(g->bw,width,height);
|
||||
Permit();
|
||||
g->bw->reformat_pending = false;
|
||||
scroll = FALSE;
|
||||
}
|
||||
|
@ -2379,7 +2377,12 @@ void ami_do_redraw(struct gui_window_2 *g,bool scroll)
|
|||
ami_clearclipreg(currp);
|
||||
|
||||
if(!option_direct_render)
|
||||
BltBitMapRastPort(glob.bm,0,0,g->win->RPort,xoffset,yoffset,width,height,0x0C0);
|
||||
{
|
||||
GetAttr(SPACE_AreaBox,g->gadgets[GID_BROWSER],(ULONG *)&bbox);
|
||||
|
||||
BltBitMapRastPort(glob.bm,0,0,g->win->RPort,bbox->Left,bbox->Top,
|
||||
bbox->Width,bbox->Height,0x0C0);
|
||||
}
|
||||
}
|
||||
|
||||
current_redraw_browser = NULL;
|
||||
|
|
Loading…
Reference in New Issue