diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-03-17 22:15:03 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-03-17 22:15:03 +0000 |
commit | c17ff1e9aeab9a2f078af06d524552b872a20558 (patch) | |
tree | e5391d092633d506736d959cd2a9f72048107c22 /amiga/history_local.c | |
parent | 1fedc6a36a6d691962227a6432c68bfe297a0bd2 (diff) | |
download | netsurf-c17ff1e9aeab9a2f078af06d524552b872a20558.tar.gz netsurf-c17ff1e9aeab9a2f078af06d524552b872a20558.tar.bz2 |
Squash memory leak and an offset problem related to helphints
svn path=/trunk/netsurf/; revision=10137
Diffstat (limited to 'amiga/history_local.c')
-rwxr-xr-x | amiga/history_local.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/amiga/history_local.c b/amiga/history_local.c index 0f087aad0..d68b6de1e 100755 --- a/amiga/history_local.c +++ b/amiga/history_local.c @@ -233,6 +233,7 @@ BOOL ami_history_event(struct history_window *hw) struct MenuItem *item; char *url; struct IBox *bbox; + ULONG xs, ys; while((result = RA_HandleInput(hw->objects[OID_MAIN],&code)) != WMHI_LASTMSG) { @@ -251,11 +252,13 @@ BOOL ami_history_event(struct history_window *hw) */ case WMHI_MOUSEMOVE: - GetAttr(SPACE_AreaBox,hw->gadgets[GID_BROWSER],(ULONG *)&bbox); + GetAttr(SPACE_AreaBox, hw->gadgets[GID_BROWSER], (ULONG *)&bbox); + GetAttr(SCROLLER_Top, hw->objects[OID_HSCROLL], (ULONG *)&xs); + GetAttr(SCROLLER_Top, hw->objects[OID_VSCROLL], (ULONG *)&ys); url = history_position_url(history_current, - hw->win->MouseX - bbox->Left, - hw->win->MouseY - bbox->Top); + hw->win->MouseX - bbox->Left + xs, + hw->win->MouseY - bbox->Top + ys); RefreshSetGadgetAttrs((APTR)hw->gadgets[GID_BROWSER], hw->win, NULL, |