From: Jason Rumney Date: Tue, 27 May 2003 21:18:22 +0000 (+0000) Subject: (GET_WHEEL_DELTA_WPARAM): New macro. X-Git-Tag: ttn-vms-21-2-B4~9915 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=af3a05edaf68db4661105964c3c583e80a80ff1c;p=emacs.git (GET_WHEEL_DELTA_WPARAM): New macro. --- 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. */