diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-11 10:12:00 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-11 10:12:00 +0000 |
commit | 47e7ad7771fc361962fdc169caf7c1a3ed875a1d (patch) | |
tree | 6e47823efb2a0ac2553e9bcd1acebfe6c7e7744f /rail_gui.c | |
parent | 21db9ebb8e5692245e1e6d68a045649f6a37166a (diff) | |
download | openttd-47e7ad7771fc361962fdc169caf7c1a3ed875a1d.tar.xz |
(svn r7130) -Codechange: Handle the positioning of windows through the desc->left/top settings with
some special values (WDP_) instead of checking window-class. This also fixes FS#172
now that we can position windows arbitrarily and are not restricted to window-classes.
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_gui.c b/rail_gui.c index 548ad88b4..722579002 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -544,7 +544,7 @@ static const Widget _build_rail_widgets[] = { }; static const WindowDesc _build_rail_desc = { - 0, 22, 372, 36, + WDP_ALIGN_TBR, 22, 372, 36, WC_BUILD_TOOLBAR, 0, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, _build_rail_widgets, |