diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-15 21:44:03 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-15 21:44:03 +0000 |
commit | 61b806d5f3f47ffb4ad7130ad37d4d2256c814c3 (patch) | |
tree | 49c53154d90ef52e4d9f8063b5c7b9122c5f0b24 /amiga | |
parent | eabb5339a3b993852e1c0a04817faa32612e12fb (diff) | |
download | netsurf-61b806d5f3f47ffb4ad7130ad37d4d2256c814c3.tar.gz netsurf-61b806d5f3f47ffb4ad7130ad37d4d2256c814c3.tar.bz2 |
Fix clicking on history items beyone the first page
svn path=/trunk/netsurf/; revision=6789
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/history_local.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/amiga/history_local.c b/amiga/history_local.c index 754726240..3c07fbf22 100755 --- a/amiga/history_local.c +++ b/amiga/history_local.c @@ -195,22 +195,19 @@ bool ami_history_click(struct history_window *hw,uint16 code) width=bbox->Width; height=bbox->Height; - if((x>=0) && (y>=0) && (x<width) && (y<height)) + switch(code) { - switch(code) - { - case SELECTUP: - history_click(hw->bw,history_current,x,y,false); - ami_history_redraw(hw); - ami_do_redraw(hw->bw->window->shared,false); - break; + case SELECTUP: + history_click(hw->bw,history_current,x,y,false); + ami_history_redraw(hw); + ami_do_redraw(hw->bw->window->shared,false); + break; - case MIDDLEUP: - history_click(hw->bw,history_current,x,y,true); - ami_history_redraw(hw); - break; + case MIDDLEUP: + history_click(hw->bw,history_current,x,y,true); + ami_history_redraw(hw); + break; - } } return true; |