emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/macterm.c


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/macterm.c
Date: Wed, 04 Jun 2003 18:03:45 -0400

Index: emacs/src/macterm.c
diff -c emacs/src/macterm.c:1.45 emacs/src/macterm.c:1.46
*** emacs/src/macterm.c:1.45    Sat May 24 18:00:34 2003
--- emacs/src/macterm.c Wed Jun  4 18:03:44 2003
***************
*** 7682,7690 ****
                GetEventParameter(eventRef, kEventParamMouseLocation,
                                  typeQDPoint, NULL, sizeof (Point),
                                  NULL, &point);
!               bufp->kind = MOUSE_WHEEL_EVENT;
!               bufp->code = delta;
!               bufp->modifiers = mac_event_to_emacs_modifiers(eventRef);
                SetPort (GetWindowPort (window_ptr));
                GlobalToLocal (&point);
                XSETINT (bufp->x, point.h);
--- 7682,7692 ----
                GetEventParameter(eventRef, kEventParamMouseLocation,
                                  typeQDPoint, NULL, sizeof (Point),
                                  NULL, &point);
!               bufp->kind = WHEEL_EVENT;
!               bufp->code = 0;
!               bufp->modifiers = (mac_event_to_emacs_modifiers(eventRef)
!                                  | ((delta < 0) ? down_modifier
!                                                 : up_modifier));
                SetPort (GetWindowPort (window_ptr));
                GlobalToLocal (&point);
                XSETINT (bufp->x, point.h);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]