summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-30 18:34:48 +0000
committerfrosch <frosch@openttd.org>2010-01-30 18:34:48 +0000
commit88019e64e1de6966c9cfe26beda537664332d7ec (patch)
tree4e907f0b62170a086d3297d50ff5743cacb4491c /src/osk_gui.cpp
parent2f6fe85f23256a116cb4e85606c8714d8fc8a399 (diff)
downloadopenttd-88019e64e1de6966c9cfe26beda537664332d7ec.tar.xz
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index 8d7c13c2a..fdd9fd1f7 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -142,7 +142,7 @@ struct OskWindow : public Window {
this->qs->DrawEditBox(this, OSK_WIDGET_TEXT);
}
- virtual void OnClick(Point pt, int widget)
+ virtual void OnClick(Point pt, int widget, int click_count)
{
/* clicked a letter */
if (widget >= OSK_WIDGET_LETTERS) {
@@ -207,7 +207,7 @@ struct OskWindow : public Window {
if (this->qs->orig == NULL || strcmp(this->qs->text.buf, this->qs->orig) != 0) {
/* pass information by simulating a button press on parent window */
if (this->ok_btn != 0) {
- this->parent->OnClick(pt, this->ok_btn);
+ this->parent->OnClick(pt, this->ok_btn, 1);
/* Window gets deleted when the parent window removes itself. */
return;
}
@@ -217,7 +217,7 @@ struct OskWindow : public Window {
case OSK_WIDGET_CANCEL:
if (this->cancel_btn != 0) { // pass a cancel event to the parent window
- this->parent->OnClick(pt, this->cancel_btn);
+ this->parent->OnClick(pt, this->cancel_btn, 1);
/* Window gets deleted when the parent window removes itself. */
return;
} else { // or reset to original string