From af3a05edaf68db4661105964c3c583e80a80ff1c Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 27 May 2003 21:18:22 +0000 Subject: [PATCH] (GET_WHEEL_DELTA_WPARAM): New macro. --- src/w32term.c | 5 +++++ 1 file changed, 5 insertions(+) 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. */ -- 2.39.2