changeset 51269:0e4f36767c58

(GET_WHEEL_DELTA_WPARAM): New macro.
author Jason Rumney <jasonr@gnu.org>
date Tue, 27 May 2003 21:18:22 +0000
parents 7e1ab6f8e58b
children 827c306f0515
files src/w32term.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Tue May 27 21:06:59 2003 +0000
+++ b/src/w32term.c	Tue May 27 21:18:22 2003 +0000
@@ -73,6 +73,11 @@
 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.  */