summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2003-05-27 21:18:22 +0000
committerJason Rumney <jasonr@gnu.org>2003-05-27 21:18:22 +0000
commitaf3a05edaf68db4661105964c3c583e80a80ff1c (patch)
tree74904bdd8cc7b3ce1c8bfe073a4f800586c1c095
parent2b5d4601724c1e696e8636d3b2e5e32e0f2dcf8d (diff)
downloademacs-af3a05edaf68db4661105964c3c583e80a80ff1c.tar.gz
emacs-af3a05edaf68db4661105964c3c583e80a80ff1c.tar.bz2
emacs-af3a05edaf68db4661105964c3c583e80a80ff1c.zip
(GET_WHEEL_DELTA_WPARAM): New macro.
-rw-r--r--src/w32term.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 2900acf7f0a..1c4e6803906 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -73,6 +73,11 @@ Lisp_Object Vx_toolkit_scroll_bars;
static int last_mousemove_x = 0;
static int last_mousemove_y = 0;
+/* Define GET_WHEEL_DELTA_WPARAM macro if system headers don't. */
+#ifndef GET_WHEEL_DELTA_WPARAM
+#define GET_WHEEL_DELTA_WPARAM(wparam) ((short)HIWORD (wparam))
+#endif
+
/* Non-zero means that a HELP_EVENT has been generated since Emacs
start. */