aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-11-18 05:22:33 +0000
committerKarl Heuer1994-11-18 05:22:33 +0000
commit9e539a3cc3a9d0a7cebb310cefdb01af8fb334a2 (patch)
tree6ba1e8395101d010dd68e315c61dbe027343aa5a /src
parent3e7383ebfa1b3b068b52ccd1b73e6872317d1c40 (diff)
downloademacs-9e539a3cc3a9d0a7cebb310cefdb01af8fb334a2.tar.gz
emacs-9e539a3cc3a9d0a7cebb310cefdb01af8fb334a2.zip
(SET_FRAME, key_event, do_mouse_event): Use accessor macros.
Diffstat (limited to 'src')
-rw-r--r--src/w32inevt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c
index e41c57e5fe5..47c2ca55b64 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -93,7 +93,7 @@ get_frame (void)
93} 93}
94 94
95#ifdef MULTI_FRAME 95#ifdef MULTI_FRAME
96#define SET_FRAME(o, f) XSET (o, Lisp_Frame, f) 96#define SET_FRAME(o, f) XSETFRAME (o, f)
97#else 97#else
98#define SET_FRAME(o, f) ((o) = Qnil) 98#define SET_FRAME(o, f) ((o) = Qnil)
99#endif 99#endif
@@ -258,7 +258,7 @@ key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev)
258 { 258 {
259 /* ASCII */ 259 /* ASCII */
260 emacs_ev->kind = ascii_keystroke; 260 emacs_ev->kind = ascii_keystroke;
261 XSET (emacs_ev->code, Lisp_Int, event->uChar.AsciiChar); 261 XSETINT (emacs_ev->code, event->uChar.AsciiChar);
262 } 262 }
263 else 263 else
264 { 264 {
@@ -269,7 +269,7 @@ key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev)
269 * the full X keysym values (2nd byte is 0xff). add it on. 269 * the full X keysym values (2nd byte is 0xff). add it on.
270 */ 270 */
271 map |= 0xff00; 271 map |= 0xff00;
272 XSET (emacs_ev->code, Lisp_Int, map); 272 XSETINT (emacs_ev->code, map);
273 } 273 }
274 SET_FRAME (emacs_ev->frame_or_window, get_frame ()); 274 SET_FRAME (emacs_ev->frame_or_window, get_frame ());
275 emacs_ev->modifiers = nt_kbd_mods_to_emacs (event->dwControlKeyState); 275 emacs_ev->modifiers = nt_kbd_mods_to_emacs (event->dwControlKeyState);
@@ -360,7 +360,7 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
360 for (i = 0; i < NUM_MOUSE_BUTTONS; i++, mask <<= 1) 360 for (i = 0; i < NUM_MOUSE_BUTTONS; i++, mask <<= 1)
361 if (but_change & mask) 361 if (but_change & mask)
362 { 362 {
363 XSET (emacs_ev->code, Lisp_Int, emacs_button_translation[i]); 363 XSETINT (emacs_ev->code, emacs_button_translation[i]);
364 break; 364 break;
365 } 365 }
366 366
@@ -374,8 +374,8 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
374 emacs_ev->modifiers = nt_kbd_mods_to_emacs (event->dwControlKeyState) | 374 emacs_ev->modifiers = nt_kbd_mods_to_emacs (event->dwControlKeyState) |
375 ((event->dwButtonState & mask) ? down_modifier : up_modifier); 375 ((event->dwButtonState & mask) ? down_modifier : up_modifier);
376 376
377 XFASTINT (emacs_ev->x) = event->dwMousePosition.X; 377 XSETFASTINT (emacs_ev->x, event->dwMousePosition.X);
378 XFASTINT (emacs_ev->y) = event->dwMousePosition.Y; 378 XSETFASTINT (emacs_ev->y, event->dwMousePosition.Y);
379 SET_FRAME (emacs_ev->frame_or_window, get_frame ()); 379 SET_FRAME (emacs_ev->frame_or_window, get_frame ());
380 380
381 return 1; 381 return 1;