X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fbuttons.c;h=7ac61e36a7a10e147e60b500302f1993f6ad40f2;hb=65e73b3607d8d4aef09abaf1f44d090197953f21;hp=c9c1348000018e6853f28f3aba2acdde8c26b76e;hpb=bd0a94b2fe778016135d2ebc4fd3c84d3b72b62f;p=rocksndiamonds.git diff --git a/src/buttons.c b/src/buttons.c index c9c13480..7ac61e36 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -1810,6 +1810,7 @@ void HandleGadgets(int mx, int my, int button) gi->state = GD_BUTTON_PRESSED; gi->event.type = GD_EVENT_PRESSED; gi->event.button = button; + gi->event.off_borders = FALSE; /* initialize delay counter */ pressed_delay = 0; @@ -1833,7 +1834,7 @@ void HandleGadgets(int mx, int my, int button) gi->state = GD_BUTTON_PRESSED; gi->event.type = GD_EVENT_MOVING; - + gi->event.off_borders = FALSE; if (gi->event_mask & GD_EVENT_MOVING) gi->callback(gi); } @@ -1845,6 +1846,7 @@ void HandleGadgets(int mx, int my, int button) gi->state = GD_BUTTON_UNPRESSED; gi->event.type = GD_EVENT_MOVING; + gi->event.off_borders = TRUE; if (gi->event_mask & GD_EVENT_MOVING) gi->callback(gi);