summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-04 10:05:50 +0000
committerrubidium <rubidium@openttd.org>2008-05-04 10:05:50 +0000
commitcb680474c3c1f58772533e257c6acbbf4e13c524 (patch)
treedb20ecb24bd4ed1e1b227ee5c97b97c39bb95656 /src/osk_gui.cpp
parentdbf6e344a419cf453ce8a292a588385b5299c996 (diff)
downloadopenttd-cb680474c3c1f58772533e257c6acbbf4e13c524.tar.xz
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index 80a87edd5..c2b3b3bbf 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -161,7 +161,7 @@ static void OskWndProc(Window *w, WindowEvent *e)
WindowEvent e;
e.event = WE_CLICK;
e.we.click.widget = WP(w, osk_d).ok_btn;
- parent->wndproc(parent, &e);
+ parent->HandleWindowEvent(&e);
}
}
DeleteWindow(w);
@@ -173,7 +173,7 @@ static void OskWndProc(Window *w, WindowEvent *e)
WindowEvent e;
e.event = WE_CLICK;
e.we.click.widget = WP(w, osk_d).cancel_btn;
- parent->wndproc(parent, &e);
+ parent->HandleWindowEvent(&e);
} else { // or reset to original string
strcpy(qs->text.buf, WP(w, osk_d).orig);
UpdateTextBufferSize(&qs->text);