summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-03 23:40:29 +0000
committerrubidium <rubidium@openttd.org>2009-01-03 23:40:29 +0000
commitc27460e29cfc0ea51e28005a2d0a966bbe1b933b (patch)
tree70f142466bb5121f646779004bb49ecf9e84ebeb
parent99eae02c9d2a168fddf7e2a71ca2a5e1c86f511a (diff)
downloadopenttd-c27460e29cfc0ea51e28005a2d0a966bbe1b933b.tar.xz
(svn r14820) -Codechange: use (the correct) enum-type instead of just int (Zuu)
-rw-r--r--src/misc_gui.cpp2
-rw-r--r--src/querystring_gui.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 2fa1ee449..bd27e065b 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1046,7 +1046,7 @@ void QueryString::DrawEditBox(Window *w, int wid)
_cur_dpi = old_dpi;
}
-int QueryStringBaseWindow::HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state)
+HandleEditBoxResult QueryStringBaseWindow::HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state)
{
return this->QueryString::HandleEditBoxKey(this, wid, key, keycode, state);
}
diff --git a/src/querystring_gui.h b/src/querystring_gui.h
index 42f8d44fb..2e7bf1736 100644
--- a/src/querystring_gui.h
+++ b/src/querystring_gui.h
@@ -66,7 +66,7 @@ struct QueryStringBaseWindow : public Window, public QueryString {
void DrawEditBox(int wid);
void HandleEditBox(int wid);
- int HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state);
+ HandleEditBoxResult HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state);
virtual void OnOpenOSKWindow(int wid);
};