summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-10-03 18:08:52 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-10-03 18:08:52 +0000
commitb9a40d8e47bac102c998b78b97d205886bc2dafb (patch)
treeedc8c99f2348255e5a8d8d146997417678b3dae4 /amiga
parent231dfe5887de81aaab5c0c1456ac12ff3cf89272 (diff)
downloadnetsurf-b9a40d8e47bac102c998b78b97d205886bc2dafb.tar.gz
netsurf-b9a40d8e47bac102c998b78b97d205886bc2dafb.tar.bz2
Fix crash when switching tabs
svn path=/trunk/netsurf/; revision=12932
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 6d587e7b5..729942f90 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2037,12 +2037,13 @@ void ami_switch_tab(struct gui_window_2 *gwin,bool redraw)
if(gwin->tabs == 0) return;
- gui_window_get_scroll(gwin->bw->window,&gwin->bw->window->scrollx,&gwin->bw->window->scrolly);
+ gui_window_get_scroll(gwin->bw->window,
+ &gwin->bw->window->scrollx, &gwin->bw->window->scrolly);
GetAttr(CLICKTAB_CurrentNode, (Object *)gwin->objects[GID_TABS],
(ULONG *)&tabnode);
GetClickTabNodeAttrs(tabnode,
- TNA_UserData,&gwin->bw,
+ TNA_UserData, &gwin->bw,
TAG_DONE);
curbw = gwin->bw;
GetAttr(SPACE_AreaBox, (Object *)gwin->objects[GID_BROWSER], (ULONG *)&bbox);
@@ -2064,15 +2065,17 @@ void ami_switch_tab(struct gui_window_2 *gwin,bool redraw)
{
gui_window_set_icon(gwin->bw->window, gwin->bw->window->favicon);
- p96RectFill(gwin->win->RPort,bbox->Left,bbox->Top,bbox->Width+bbox->Left,bbox->Height+bbox->Top,0xffffffff);
+ p96RectFill(gwin->win->RPort, bbox->Left, bbox->Top,
+ bbox->Width+bbox->Left, bbox->Height+bbox->Top, 0xffffffff);
- browser_window_update(gwin->bw,false);
+ browser_window_update(gwin->bw, false);
- gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly);
+ gui_window_set_scroll(gwin->bw->window,
+ gwin->bw->window->scrollx, gwin->bw->window->scrolly);
gwin->redraw_scroll = false;
browser_window_refresh_url_bar(gwin->bw,
- nsurl_access(content_get_url(gwin->bw->current_content)), gwin->bw->frag_id);
+ content_get_url(gwin->bw->current_content), gwin->bw->frag_id);
}
}