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