summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xamiga/gui.c9
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;