diff options
author | rubidium <rubidium@openttd.org> | 2008-05-04 10:05:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-04 10:05:50 +0000 |
commit | cb680474c3c1f58772533e257c6acbbf4e13c524 (patch) | |
tree | db20ecb24bd4ed1e1b227ee5c97b97c39bb95656 /src/misc_gui.cpp | |
parent | dbf6e344a419cf453ce8a292a588385b5299c996 (diff) | |
download | openttd-cb680474c3c1f58772533e257c6acbbf4e13c524.tar.xz |
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 398529c04..8be0d45fb 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1164,7 +1164,7 @@ static void QueryStringWndProc(Window *w, WindowEvent *e) WindowEvent e; e.event = WE_ON_EDIT_TEXT; e.we.edittext.str = qs->text.buf; - parent->wndproc(parent, &e); + parent->HandleWindowEvent(&e); } else { HandleOnEditText(qs->text.buf); } @@ -1194,7 +1194,7 @@ static void QueryStringWndProc(Window *w, WindowEvent *e) qs->handled = true; e.event = WE_ON_EDIT_TEXT_CANCEL; - parent->wndproc(parent, &e); + parent->HandleWindowEvent(&e); } ClrBit(_no_scroll, SCROLL_EDIT); break; |