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/newgrf_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/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 1f0617f53..1b265f4a8 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -254,12 +254,12 @@ static const Widget _newgrf_add_dlg_widgets[] = { }; /* Window definition for the add a newgrf window */ -static const WindowDesc _newgrf_add_dlg_desc = { +static const WindowDesc _newgrf_add_dlg_desc( WDP_CENTER, WDP_CENTER, 307, 237, 307, 337, WC_SAVELOAD, WC_NONE, WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, - _newgrf_add_dlg_widgets, -}; + _newgrf_add_dlg_widgets +); static GRFPresetList _grf_preset_list; @@ -753,12 +753,12 @@ static const Widget _newgrf_widgets[] = { }; /* Window definition of the manage newgrfs window */ -static const WindowDesc _newgrf_desc = { +static const WindowDesc _newgrf_desc( WDP_CENTER, WDP_CENTER, 300, 263, 300, 263, WC_GAME_OPTIONS, WC_NONE, WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, - _newgrf_widgets, -}; + _newgrf_widgets +); /** Callback function for the newgrf 'apply changes' confirmation window * @param w Window which is calling this callback |