diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/nsterm.m | 6 | ||||
| -rw-r--r-- | src/w32gui.h | 4 |
3 files changed, 12 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9bdbb9a7d18..dca9a174c34 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-05-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fixups, following up to the user-interface timestamp change. | ||
| 4 | * nsterm.m (last_mouse_movement_time, ns_mouse_position): Use Time | ||
| 5 | for UI timestamps, instead of unsigned long. | ||
| 6 | * w32gui.h (Time): Define by including "systime.h" rather than by | ||
| 7 | declaring it ourselves. (Bug#8664) | ||
| 8 | |||
| 1 | 2011-05-13 Paul Eggert <eggert@cs.ucla.edu> | 9 | 2011-05-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 10 | ||
| 3 | * editfns.c (Fformat): Fix several integer overflow problems. | 11 | * editfns.c (Fformat): Fix several integer overflow problems. |
diff --git a/src/nsterm.m b/src/nsterm.m index c4756dc83cd..ac9c44a57a9 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -158,7 +158,7 @@ long context_menu_value = 0; | |||
| 158 | /* display update */ | 158 | /* display update */ |
| 159 | NSPoint last_mouse_motion_position; | 159 | NSPoint last_mouse_motion_position; |
| 160 | static NSRect last_mouse_glyph; | 160 | static NSRect last_mouse_glyph; |
| 161 | static unsigned long last_mouse_movement_time = 0; | 161 | static Time last_mouse_movement_time = 0; |
| 162 | static Lisp_Object last_mouse_motion_frame; | 162 | static Lisp_Object last_mouse_motion_frame; |
| 163 | static EmacsScroller *last_mouse_scroll_bar = nil; | 163 | static EmacsScroller *last_mouse_scroll_bar = nil; |
| 164 | static struct frame *ns_updating_frame; | 164 | static struct frame *ns_updating_frame; |
| @@ -1789,7 +1789,7 @@ note_mouse_movement (struct frame *frame, float x, float y) | |||
| 1789 | static void | 1789 | static void |
| 1790 | ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, | 1790 | ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, |
| 1791 | enum scroll_bar_part *part, Lisp_Object *x, Lisp_Object *y, | 1791 | enum scroll_bar_part *part, Lisp_Object *x, Lisp_Object *y, |
| 1792 | unsigned long *time) | 1792 | Time *time) |
| 1793 | /* -------------------------------------------------------------------------- | 1793 | /* -------------------------------------------------------------------------- |
| 1794 | External (hook): inform emacs about mouse position and hit parts. | 1794 | External (hook): inform emacs about mouse position and hit parts. |
| 1795 | If a scrollbar is being dragged, set bar_window, part, x, y, time. | 1795 | If a scrollbar is being dragged, set bar_window, part, x, y, time. |
| @@ -6531,5 +6531,3 @@ baseline level. The default value is nil. */); | |||
| 6531 | /* Tell emacs about this window system. */ | 6531 | /* Tell emacs about this window system. */ |
| 6532 | Fprovide (intern ("ns"), Qnil); | 6532 | Fprovide (intern ("ns"), Qnil); |
| 6533 | } | 6533 | } |
| 6534 | |||
| 6535 | |||
diff --git a/src/w32gui.h b/src/w32gui.h index 936709af181..2ba9cb53e22 100644 --- a/src/w32gui.h +++ b/src/w32gui.h | |||
| @@ -20,6 +20,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #define EMACS_W32GUI_H | 20 | #define EMACS_W32GUI_H |
| 21 | #include <windows.h> | 21 | #include <windows.h> |
| 22 | 22 | ||
| 23 | #include "systime.h" /* for Time */ | ||
| 24 | |||
| 23 | /* Local memory management for menus. */ | 25 | /* Local memory management for menus. */ |
| 24 | #define local_heap (GetProcessHeap ()) | 26 | #define local_heap (GetProcessHeap ()) |
| 25 | #define local_alloc(n) (HeapAlloc (local_heap, HEAP_ZERO_MEMORY, (n))) | 27 | #define local_alloc(n) (HeapAlloc (local_heap, HEAP_ZERO_MEMORY, (n))) |
| @@ -47,7 +49,6 @@ typedef char * XrmDatabase; | |||
| 47 | 49 | ||
| 48 | typedef XGCValues * GC; | 50 | typedef XGCValues * GC; |
| 49 | typedef COLORREF Color; | 51 | typedef COLORREF Color; |
| 50 | typedef DWORD Time; | ||
| 51 | typedef HWND Window; | 52 | typedef HWND Window; |
| 52 | typedef HDC Display; /* HDC so it doesn't conflict with xpm lib. */ | 53 | typedef HDC Display; /* HDC so it doesn't conflict with xpm lib. */ |
| 53 | typedef HCURSOR Cursor; | 54 | typedef HCURSOR Cursor; |
| @@ -147,4 +148,3 @@ typedef struct { | |||
| 147 | 148 | ||
| 148 | 149 | ||
| 149 | #endif /* EMACS_W32GUI_H */ | 150 | #endif /* EMACS_W32GUI_H */ |
| 150 | |||