summaryrefslogtreecommitdiff
path: root/src/window_gui.h
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/window_gui.h
parent2f6fe85f23256a116cb4e85606c8714d8fc8a399 (diff)
downloadopenttd-88019e64e1de6966c9cfe26beda537664332d7ec.tar.xz
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index dccabc09a..2956b7eab 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -638,15 +638,9 @@ public:
* A click with the left mouse button has been made on the window.
* @param pt the point inside the window that has been clicked.
* @param widget the clicked widget.
+ * @param click_count Number of fast consecutive clicks at same position
*/
- virtual void OnClick(Point pt, int widget) {}
-
- /**
- * A double click with the left mouse button has been made on the window.
- * @param pt the point inside the window that has been clicked.
- * @param widget the clicked widget.
- */
- virtual void OnDoubleClick(Point pt, int widget) {}
+ virtual void OnClick(Point pt, int widget, int click_count) {}
/**
* A click with the right mouse button has been made on the window.