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
commit68ff3bc90f6c50acfff5b5874eff3dd41d4260f7 (patch)
tree0857d609f79653e88f3c82187a3a7a74991c8f24
parentfc201d4ad8268234ce67d2ea1e49d470ab0c2004 (diff)
downloadopenttd-68ff3bc90f6c50acfff5b5874eff3dd41d4260f7.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: {