aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2000-01-23 03:21:01 +0000
committerJason Rumney2000-01-23 03:21:01 +0000
commit4f4a5f699ba86f9186a8112c82cd46ff5f17e363 (patch)
tree4fb256ece7b99de85b93511b9c3cbe7a8cc6bc41 /src
parent5a048001f769258696756875c864fdfa555f0c66 (diff)
downloademacs-4f4a5f699ba86f9186a8112c82cd46ff5f17e363.tar.gz
emacs-4f4a5f699ba86f9186a8112c82cd46ff5f17e363.zip
(get_frame, w32_console_mouse_position, mouse_moved_to):
Use SELECTED_FRAME macro.
Diffstat (limited to 'src')
-rw-r--r--src/w32inevt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c
index de15f0970b2..0abae10cabe 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -110,7 +110,7 @@ fill_queue (BOOL block)
110static FRAME_PTR 110static FRAME_PTR
111get_frame (void) 111get_frame (void)
112{ 112{
113 return selected_frame; 113 return SELECTED_FRAME ();
114} 114}
115 115
116/* Translate console modifiers to emacs modifiers. 116/* Translate console modifiers to emacs modifiers.
@@ -519,7 +519,7 @@ w32_console_mouse_position (FRAME_PTR *f,
519 *f = get_frame (); 519 *f = get_frame ();
520 *bar_window = Qnil; 520 *bar_window = Qnil;
521 *part = 0; 521 *part = 0;
522 selected_frame->mouse_moved = 0; 522 SELECTED_FRAME ()->mouse_moved = 0;
523 523
524 *x = movement_pos.X; 524 *x = movement_pos.X;
525 *y = movement_pos.Y; 525 *y = movement_pos.Y;
@@ -535,7 +535,7 @@ mouse_moved_to (int x, int y)
535 /* If we're in the same place, ignore it */ 535 /* If we're in the same place, ignore it */
536 if (x != movement_pos.X || y != movement_pos.Y) 536 if (x != movement_pos.X || y != movement_pos.Y)
537 { 537 {
538 selected_frame->mouse_moved = 1; 538 SELECTED_FRAME ()->mouse_moved = 1;
539 movement_pos.X = x; 539 movement_pos.X = x;
540 movement_pos.Y = y; 540 movement_pos.Y = y;
541 movement_time = GetTickCount (); 541 movement_time = GetTickCount ();