diff options
author | rubidium <rubidium@openttd.org> | 2009-03-15 15:12:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-15 15:12:06 +0000 |
commit | 7f468dc142f0d34dd29d15f90a790ec89988c60b (patch) | |
tree | 66a1daaed45d405317364932c5184ead15c023d4 /src/smallmap_gui.cpp | |
parent | edacf532882ce1964ace9a59754f143a070c2dc7 (diff) | |
download | openttd-7f468dc142f0d34dd29d15f90a790ec89988c60b.tar.xz |
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 85e0cffdc..0619f4039 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1055,12 +1055,12 @@ public: SmallMapWindow::SmallMapType SmallMapWindow::map_type = SMT_CONTOUR; bool SmallMapWindow::show_towns = true; -static const WindowDesc _smallmap_desc = { +static const WindowDesc _smallmap_desc( WDP_AUTO, WDP_AUTO, 350, 214, 446, 314, WC_SMALLMAP, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE, - _smallmap_widgets, -}; + _smallmap_widgets +); void ShowSmallMap() { @@ -1197,12 +1197,12 @@ public: } }; -static const WindowDesc _extra_view_port_desc = { +static const WindowDesc _extra_view_port_desc( WDP_AUTO, WDP_AUTO, 300, 68, 300, 268, WC_EXTRA_VIEW_PORT, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, - _extra_view_port_widgets, -}; + _extra_view_port_widgets +); void ShowExtraViewPortWindow(TileIndex tile) { |