diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-05-29 22:30:15 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-05-29 22:30:15 +0000 |
commit | 6770f7b9f9a40bd219324630b16ad6821060d8a7 (patch) | |
tree | 5baad877fb7af34b1823e407f6a3be2fd5f50165 /amiga/gui.c | |
parent | b0962da79ab6505ff177266b03724cc292efc714 (diff) | |
download | netsurf-6770f7b9f9a40bd219324630b16ad6821060d8a7.tar.gz netsurf-6770f7b9f9a40bd219324630b16ad6821060d8a7.tar.bz2 |
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
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index f6c91e265..d2b1794a1 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -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; |