diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-30 01:17:53 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-30 01:17:53 +0000 |
commit | c87fcab77216fa2a3c8a5a334c32099665b1241d (patch) | |
tree | 4ef6719359384448b5674c8f954ba1a88987d16d /settings_gui.c | |
parent | ed2c8ecef5f2a6d62273ebccf0f82bad1f73ea4a (diff) | |
download | openttd-c87fcab77216fa2a3c8a5a334c32099665b1241d.tar.xz |
(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the
query has no parent (eg give money, rename waypoint), the global function
HandleOnEditText is used.
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/settings_gui.c b/settings_gui.c index f9efc264d..1c1bdcb7d 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -845,7 +845,7 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e) WP(w,def_d).data_3 = btn; SetDParam(0, value); - ShowQueryString(STR_CONFIG_PATCHES_INT32, STR_CONFIG_PATCHES_QUERY_CAPT, 10, 100, WC_GAME_OPTIONS, 0, CS_NUMERAL); + ShowQueryString(STR_CONFIG_PATCHES_INT32, STR_CONFIG_PATCHES_QUERY_CAPT, 10, 100, w, CS_NUMERAL); } } @@ -1061,14 +1061,8 @@ static void CustCurrencyWndProc(Window *w, WindowEvent *e) } if (len != 0) { - WP(w,def_d).data_2 = line; - ShowQueryString( - str, - STR_CURRENCY_CHANGE_PARAMETER, - len + 1, // maximum number of characters OR - 250, // characters up to this width pixels, whichever is satisfied first - w->window_class, - w->window_number, afilter); + WP(w, def_d).data_2 = line; + ShowQueryString(str, STR_CURRENCY_CHANGE_PARAMETER, len + 1, 250, w, afilter); } w->flags4 |= 5 << WF_TIMEOUT_SHL; |