summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-06-22 13:10:56 +0000
committerglx <glx@openttd.org>2007-06-22 13:10:56 +0000
commit8dff21e421560e882ce8511359848bdcdb1ff3aa (patch)
tree0857d609f79653e88f3c82187a3a7a74991c8f24
parente5c352818d7edfdc5219e4c82f7d5b2083b2b72d (diff)
downloadopenttd-8dff21e421560e882ce8511359848bdcdb1ff3aa.tar.xz
(svn r10267) -Add: enable double clic to add in 'add newgrf' window
-rw-r--r--src/newgrf_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 0d5fbd457..988bba28c 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -156,6 +156,11 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e)
break;
}
+ case WE_DOUBLE_CLICK:
+ if (e->we.click.widget != 3) break;
+ e->we.click.widget = 6;
+ /* Fall through */
+
case WE_CLICK:
switch (e->we.click.widget) {
case 3: {