diff options
author | rubidium <rubidium@openttd.org> | 2009-11-28 14:36:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-28 14:36:43 +0000 |
commit | b58b058e2b254cb375ebc2ec67c1ac307e6aeb87 (patch) | |
tree | 5e021c897eeb9101c4dd0048be16d860fd9cf14d /src/window_gui.h | |
parent | 6a367fda8a7f8e563310f7254d612dbb0010d919 (diff) | |
download | openttd-b58b058e2b254cb375ebc2ec67c1ac307e6aeb87.tar.xz |
(svn r18321) -Fix [FS#3331]: make the toolbars also calculate their top location based on the main toolbar's height instead of hardcoding that
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 5eb2bf4ef..0495bcd8f 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -159,11 +159,10 @@ enum WindowDefaultFlag { * Special values for 'left' and 'top' to cause a specific placement */ enum WindowDefaultPosition { - WDP_MANUAL, ///< Manually align the window (so no automatic location finding) - WDP_AUTO = -1, ///< Find a place automatically - WDP_CENTER = -2, ///< Center the window (left/right or top/bottom) - WDP_ALIGN_TBR = -3, ///< Align the right side of the window with the right side of the main toolbar - WDP_ALIGN_TBL = -4, ///< Align the left side of the window with the left side of the main toolbar + WDP_MANUAL, ///< Manually align the window (so no automatic location finding) + WDP_AUTO = -1, ///< Find a place automatically + WDP_CENTER = -2, ///< Center the window (left/right or top/bottom) + WDP_ALIGN_TOOLBAR = -3, ///< Align to the main toolbar }; Point GetToolbarAlignedWindowPosition(int window_width); |