diff options
author | rubidium <rubidium@openttd.org> | 2008-05-08 11:31:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-08 11:31:41 +0000 |
commit | 51cda2252ceb088d75f25074f1e83e8eec5f18b6 (patch) | |
tree | 34abcc3662d6f35a9ace2d7f77586e68242b96e7 /src/settings_gui.cpp | |
parent | 5a7fcf9aa3ce17e9f8602a682171b30cc8b1a786 (diff) | |
download | openttd-51cda2252ceb088d75f25074f1e83e8eec5f18b6.tar.xz |
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index a857a0461..3ce65d5ab 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -389,7 +389,7 @@ static const WindowDesc _game_options_desc = { void ShowGameOptions() { DeleteWindowById(WC_GAME_OPTIONS, 0); - AllocateWindowDesc(&_game_options_desc); + new Window(&_game_options_desc); } struct GameSettingData { @@ -698,7 +698,7 @@ void ShowGameDifficulty() /* Copy current settings (ingame or in intro) to temporary holding place * change that when setting stuff, copy back on clicking 'OK' */ _opt_mod_temp = *_opt_ptr; - AllocateWindowDesc(&_game_difficulty_desc); + new Window(&_game_difficulty_desc); } static const char *_patches_ui[] = { @@ -1104,7 +1104,7 @@ static const WindowDesc _patches_selection_desc = { void ShowPatchesSelection() { DeleteWindowById(WC_GAME_OPTIONS, 0); - AllocateWindowDesc(&_patches_selection_desc); + new Window(&_patches_selection_desc); } @@ -1334,5 +1334,5 @@ static void ShowCustCurrency() _str_separator[1] = '\0'; DeleteWindowById(WC_CUSTOM_CURRENCY, 0); - AllocateWindowDesc(&_cust_currency_desc); + new Window(&_cust_currency_desc); } |