diff options
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 88b0ea17e..17622061f 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -747,7 +747,7 @@ static void ToolbarSwitchClick(Window *w) static void ToolbarScenDateBackward(Window *w) { /* don't allow too fast scrolling */ - if ((w->flags4 & WF_TIMEOUT_MASK) <= 2 << WF_TIMEOUT_SHL) { + if ((w->flags4 & WF_TIMEOUT_MASK) <= WF_TIMEOUT_TRIGGER) { w->HandleButtonClick(TBSE_DATEBACKWARD); w->SetDirty(); @@ -760,7 +760,7 @@ static void ToolbarScenDateBackward(Window *w) static void ToolbarScenDateForward(Window *w) { /* don't allow too fast scrolling */ - if ((w->flags4 & WF_TIMEOUT_MASK) <= 2 << WF_TIMEOUT_SHL) { + if ((w->flags4 & WF_TIMEOUT_MASK) <= WF_TIMEOUT_TRIGGER) { w->HandleButtonClick(TBSE_DATEFORWARD); w->SetDirty(); |