summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-12 09:14:34 +0000
committerfrosch <frosch@openttd.org>2010-08-12 09:14:34 +0000
commitb37be47f162a614ddfb0a777331d7c402930aec5 (patch)
treeba7909ff163a1b023bc4f69ba3c424684813d49b /src/window_gui.h
parent6e9c9c28d950a822beb0fb4e76d5ba40a247085c (diff)
downloadopenttd-b37be47f162a614ddfb0a777331d7c402930aec5.tar.xz
(svn r20460) -Codechange: Remove WF_SCROLL window flags and store the state directly in the scrollbar widget instead.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 6c9c688bf..766a738d8 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -746,21 +746,17 @@ enum WindowFlags {
WF_TIMEOUT_BEGIN = 7, ///< 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()
- WF_SCROLL2 = 1 << 7,
- WF_HSCROLL = 1 << 8,
- WF_SIZING_RIGHT = 1 << 9, ///< Window is being resized towards the right.
- WF_SIZING_LEFT = 1 << 10, ///< Window is being resized towards the left.
+ WF_SIZING_RIGHT = 1 << 4, ///< Window is being resized towards the right.
+ WF_SIZING_LEFT = 1 << 5, ///< Window is being resized towards the left.
WF_SIZING = WF_SIZING_RIGHT | WF_SIZING_LEFT, ///< Window is being resized.
- WF_STICKY = 1 << 11, ///< Window is made sticky by user
+ WF_STICKY = 1 << 6, ///< Window is made sticky by user
- WF_DISABLE_VP_SCROLL = 1 << 12, ///< Window does not do autoscroll, @see HandleAutoscroll()
+ WF_DISABLE_VP_SCROLL = 1 << 7, ///< Window does not do autoscroll, @see HandleAutoscroll()
- WF_WHITE_BORDER_ONE = 1 << 13,
- WF_WHITE_BORDER_MASK = 1 << 14 | WF_WHITE_BORDER_ONE,
+ WF_WHITE_BORDER_ONE = 1 << 8,
+ WF_WHITE_BORDER_MASK = 1 << 9 | WF_WHITE_BORDER_ONE,
- WF_CENTERED = 1 << 15, ///< Window is centered and shall stay centered after ReInit
+ WF_CENTERED = 1 << 10, ///< Window is centered and shall stay centered after ReInit
};
Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);