diff options
author | frosch <frosch@openttd.org> | 2010-01-30 18:34:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-30 18:34:48 +0000 |
commit | 88019e64e1de6966c9cfe26beda537664332d7ec (patch) | |
tree | 4e907f0b62170a086d3297d50ff5743cacb4491c /src/signs_gui.cpp | |
parent | 2f6fe85f23256a116cb4e85606c8714d8fc8a399 (diff) | |
download | openttd-88019e64e1de6966c9cfe26beda537664332d7ec.tar.xz |
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 5d86e90f9..5597a1202 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -143,7 +143,7 @@ struct SignListWindow : Window, SignList { if (widget == SLW_CAPTION) SetDParam(0, this->vscroll.GetCount()); } - virtual void OnClick(Point pt, int widget) + virtual void OnClick(Point pt, int widget, int click_count) { if (widget == SLW_LIST) { uint id_v = (pt.y - this->GetWidget<NWidgetBase>(SLW_LIST)->pos_y - WD_FRAMERECT_TOP) / this->resize.step_height; @@ -328,7 +328,7 @@ struct SignWindow : QueryStringBaseWindow, SignList { if (!this->IsShaded()) this->DrawEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT); } - virtual void OnClick(Point pt, int widget) + virtual void OnClick(Point pt, int widget, int click_count) { switch (widget) { case QUERY_EDIT_SIGN_WIDGET_PREVIOUS: |