summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-23 15:24:15 +0000
committerrubidium <rubidium@openttd.org>2008-09-23 15:24:15 +0000
commit6a931d67cdcc98557efeabab4e0337150fab3541 (patch)
tree5750d793f5ad84cfe126c7054b76cb5950f64300 /src/window_gui.h
parentff76ef6a0a89b4a2e97737f2fb9251d9e5ec854e (diff)
downloadopenttd-6a931d67cdcc98557efeabab4e0337150fab3541.tar.xz
(svn r14390) -Codechange: replace magic constants with symbolic constants.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index b615778c2..5de67feb5 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -487,8 +487,9 @@ enum WindowWidgetTypes {
* Window flags
*/
enum WindowFlags {
- WF_TIMEOUT_SHL = 0, ///< Window timeout counter shift
- WF_TIMEOUT_MASK = 7, ///< Window timeout counter bit mask (3 bits), @see WF_TIMEOUT_SHL
+ WF_TIMEOUT_TRIGGER = 2, ///< When the timeout should start triggering
+ WF_TIMEOUT_BEGIN = 5, ///< The initial value for the timeout
+ WF_TIMEOUT_MASK = 7, ///< Window timeout counter bit mask (3 bits)
WF_DRAGGING = 1 << 3, ///< Window is being dragged
WF_SCROLL_UP = 1 << 4, ///< Upper scroll button has been pressed, @see ScrollbarClickHandler()
WF_SCROLL_DOWN = 1 << 5, ///< Lower scroll button has been pressed, @see ScrollbarClickHandler()