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 /newgrf_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 'newgrf_gui.c')
-rw-r--r-- | newgrf_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_gui.c b/newgrf_gui.c index ad9aa5916..4ae734207 100644 --- a/newgrf_gui.c +++ b/newgrf_gui.c @@ -436,7 +436,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) if (WP(w, newgrf_d).sel == NULL) break; GRFBuildParamList(buff, WP(w, newgrf_d).sel, lastof(buff)); - ShowQueryString(BindCString(buff), STR_NEWGRF_PARAMETER_QUERY, 63, 250, w->window_class, w->window_number, CS_ALPHANUMERAL); + ShowQueryString(BindCString(buff), STR_NEWGRF_PARAMETER_QUERY, 63, 250, w, CS_ALPHANUMERAL); break; } } |