(svn r14390) -Codechange: replace magic constants with symbolic constants.

This commit is contained in:
rubidium
2008-09-23 15:24:15 +00:00
parent ff76ef6a0a
commit 6a931d67cd
10 changed files with 19 additions and 18 deletions

View File

@@ -890,8 +890,8 @@ struct PatchesSelectionWindow : Window {
uint32 step = (sdb->interval == 0) ? ((sdb->max - sdb->min) / 50) : sdb->interval;
if (step == 0) step = 1;
// don't allow too fast scrolling
if ((this->flags4 & WF_TIMEOUT_MASK) > 2 << WF_TIMEOUT_SHL) {
/* don't allow too fast scrolling */
if ((this->flags4 & WF_TIMEOUT_MASK) > WF_TIMEOUT_TRIGGER) {
_left_button_clicked = false;
return;
}
@@ -908,7 +908,7 @@ struct PatchesSelectionWindow : Window {
/* Set up scroller timeout for numeric values */
if (value != oldvalue && !(sd->desc.flags & SGF_MULTISTRING)) {
this->click = btn * 2 + 1 + ((x >= 10) ? 1 : 0);
this->flags4 |= 5 << WF_TIMEOUT_SHL;
this->flags4 |= WF_TIMEOUT_BEGIN;
_left_button_clicked = false;
}
} break;
@@ -1168,7 +1168,7 @@ struct CustomCurrencyWindow : Window {
ShowQueryString(str, STR_CURRENCY_CHANGE_PARAMETER, len + 1, 250, this, afilter, QSF_NONE);
}
this->flags4 |= 5 << WF_TIMEOUT_SHL;
this->flags4 |= WF_TIMEOUT_BEGIN;
this->SetDirty();
}