Fix the display of the drag save icon
This commit is contained in:
parent
967d22afe5
commit
6641b082f8
30
amiga/gui.c
30
amiga/gui.c
|
@ -1365,24 +1365,24 @@ void ami_handle_msg(void)
|
||||||
width=bbox->Width;
|
width=bbox->Width;
|
||||||
height=bbox->Height;
|
height=bbox->Height;
|
||||||
|
|
||||||
if(gwin->mouse_state & BROWSER_MOUSE_DRAG_ON &&
|
if(gwin->mouse_state & BROWSER_MOUSE_DRAG_ON)
|
||||||
((gwin->bw->drag_type == DRAGGING_SELECTION) ||
|
|
||||||
ami_autoscroll == TRUE))
|
|
||||||
{
|
{
|
||||||
ami_drag_icon_move();
|
ami_drag_icon_move();
|
||||||
|
|
||||||
if((gwin->win->MouseX < bbox->Left) &&
|
if(ami_autoscroll == TRUE) {
|
||||||
((gwin->win->MouseX - bbox->Left) > -AMI_DRAG_THRESHOLD))
|
if((gwin->win->MouseX < bbox->Left) &&
|
||||||
drag_x_move = gwin->win->MouseX - bbox->Left;
|
((gwin->win->MouseX - bbox->Left) > -AMI_DRAG_THRESHOLD))
|
||||||
if((gwin->win->MouseX > (bbox->Left + bbox->Width)) &&
|
drag_x_move = gwin->win->MouseX - bbox->Left;
|
||||||
((gwin->win->MouseX - (bbox->Left + bbox->Width)) < AMI_DRAG_THRESHOLD))
|
if((gwin->win->MouseX > (bbox->Left + bbox->Width)) &&
|
||||||
drag_x_move = gwin->win->MouseX - (bbox->Left + bbox->Width);
|
((gwin->win->MouseX - (bbox->Left + bbox->Width)) < AMI_DRAG_THRESHOLD))
|
||||||
if((gwin->win->MouseY < bbox->Top) &&
|
drag_x_move = gwin->win->MouseX - (bbox->Left + bbox->Width);
|
||||||
((gwin->win->MouseY - bbox->Top) > -AMI_DRAG_THRESHOLD))
|
if((gwin->win->MouseY < bbox->Top) &&
|
||||||
drag_y_move = gwin->win->MouseY - bbox->Top;
|
((gwin->win->MouseY - bbox->Top) > -AMI_DRAG_THRESHOLD))
|
||||||
if((gwin->win->MouseY > (bbox->Top + bbox->Height)) &&
|
drag_y_move = gwin->win->MouseY - bbox->Top;
|
||||||
((gwin->win->MouseY - (bbox->Top + bbox->Height)) < AMI_DRAG_THRESHOLD))
|
if((gwin->win->MouseY > (bbox->Top + bbox->Height)) &&
|
||||||
drag_y_move = gwin->win->MouseY - (bbox->Top + bbox->Height);
|
((gwin->win->MouseY - (bbox->Top + bbox->Height)) < AMI_DRAG_THRESHOLD))
|
||||||
|
drag_y_move = gwin->win->MouseY - (bbox->Top + bbox->Height);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((x>=xs) && (y>=ys) && (x<width+xs) && (y<height+ys))
|
if((x>=xs) && (y>=ys) && (x<width+xs) && (y<height+ys))
|
||||||
|
|
Loading…
Reference in New Issue