From 6770f7b9f9a40bd219324630b16ad6821060d8a7 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 29 May 2009 22:30:15 +0000 Subject: 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 --- amiga/gui.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'amiga') 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; -- cgit v1.2.3