Mercurial > emacs
comparison src/keyboard.c @ 85256:6ba13006da6d
Replace `abs' with `eabs'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 13 Oct 2007 12:44:53 +0000 |
parents | 8188d7d7f4c5 |
children | 43319f71ffe6 |
comparison
equal
deleted
inserted
replaced
85255:09574ceaf070 | 85256:6ba13006da6d |
---|---|
5705 fuzz = double_click_fuzz; | 5705 fuzz = double_click_fuzz; |
5706 else | 5706 else |
5707 fuzz = double_click_fuzz / 8; | 5707 fuzz = double_click_fuzz / 8; |
5708 | 5708 |
5709 is_double = (button == last_mouse_button | 5709 is_double = (button == last_mouse_button |
5710 && (abs (XINT (event->x) - last_mouse_x) <= fuzz) | 5710 && (eabs (XINT (event->x) - last_mouse_x) <= fuzz) |
5711 && (abs (XINT (event->y) - last_mouse_y) <= fuzz) | 5711 && (eabs (XINT (event->y) - last_mouse_y) <= fuzz) |
5712 && button_down_time != 0 | 5712 && button_down_time != 0 |
5713 && (EQ (Vdouble_click_time, Qt) | 5713 && (EQ (Vdouble_click_time, Qt) |
5714 || (INTEGERP (Vdouble_click_time) | 5714 || (INTEGERP (Vdouble_click_time) |
5715 && ((int)(event->timestamp - button_down_time) | 5715 && ((int)(event->timestamp - button_down_time) |
5716 < XINT (Vdouble_click_time))))); | 5716 < XINT (Vdouble_click_time))))); |
5874 fuzz = double_click_fuzz; | 5874 fuzz = double_click_fuzz; |
5875 else | 5875 else |
5876 fuzz = double_click_fuzz / 8; | 5876 fuzz = double_click_fuzz / 8; |
5877 | 5877 |
5878 is_double = (last_mouse_button < 0 | 5878 is_double = (last_mouse_button < 0 |
5879 && (abs (XINT (event->x) - last_mouse_x) <= fuzz) | 5879 && (eabs (XINT (event->x) - last_mouse_x) <= fuzz) |
5880 && (abs (XINT (event->y) - last_mouse_y) <= fuzz) | 5880 && (eabs (XINT (event->y) - last_mouse_y) <= fuzz) |
5881 && button_down_time != 0 | 5881 && button_down_time != 0 |
5882 && (EQ (Vdouble_click_time, Qt) | 5882 && (EQ (Vdouble_click_time, Qt) |
5883 || (INTEGERP (Vdouble_click_time) | 5883 || (INTEGERP (Vdouble_click_time) |
5884 && ((int)(event->timestamp - button_down_time) | 5884 && ((int)(event->timestamp - button_down_time) |
5885 < XINT (Vdouble_click_time))))); | 5885 < XINT (Vdouble_click_time))))); |