]> code.delx.au - gnu-emacs/commitdiff
(GET_WHEEL_DELTA_WPARAM): New macro.
authorJason Rumney <jasonr@gnu.org>
Tue, 27 May 2003 21:18:22 +0000 (21:18 +0000)
committerJason Rumney <jasonr@gnu.org>
Tue, 27 May 2003 21:18:22 +0000 (21:18 +0000)
src/w32term.c

index 2900acf7f0a375edc3c1f577f8dd6403fce6e4f6..1c4e68039061f34f4fdca03afbe8900da0f439d9 100644 (file)
@@ -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.  */