diff options
| author | Kim F. Storm | 2003-11-23 00:10:08 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-11-23 00:10:08 +0000 |
| commit | 0de01dfe8a6d0ebd4a495b3718fe7edffc5748c1 (patch) | |
| tree | 34cc7ca49cdd7d96d43cfc6bd020de2eadb6ae90 /src | |
| parent | 3d56670718b1400ff41f26e96fe2e0ec632e9b17 (diff) | |
| download | emacs-0de01dfe8a6d0ebd4a495b3718fe7edffc5748c1.tar.gz emacs-0de01dfe8a6d0ebd4a495b3718fe7edffc5748c1.zip | |
(coordinates_in_window): Remove redundant tests.
Fix returned X pixel value for left-margin.
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c index 7e4b5767561..e20dc2ae037 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -632,8 +632,7 @@ coordinates_in_window (w, x, y) | |||
| 632 | scroll bars. */ | 632 | scroll bars. */ |
| 633 | 633 | ||
| 634 | if (WINDOW_WANTS_MODELINE_P (w) | 634 | if (WINDOW_WANTS_MODELINE_P (w) |
| 635 | && *y >= bottom_y - CURRENT_MODE_LINE_HEIGHT (w) | 635 | && *y >= bottom_y - CURRENT_MODE_LINE_HEIGHT (w)) |
| 636 | && *y < bottom_y) | ||
| 637 | { | 636 | { |
| 638 | part = ON_MODE_LINE; | 637 | part = ON_MODE_LINE; |
| 639 | 638 | ||
| @@ -662,7 +661,6 @@ coordinates_in_window (w, x, y) | |||
| 662 | } | 661 | } |
| 663 | 662 | ||
| 664 | if (WINDOW_WANTS_HEADER_LINE_P (w) | 663 | if (WINDOW_WANTS_HEADER_LINE_P (w) |
| 665 | && *y >= top_y | ||
| 666 | && *y < top_y + CURRENT_HEADER_LINE_HEIGHT (w)) | 664 | && *y < top_y + CURRENT_HEADER_LINE_HEIGHT (w)) |
| 667 | { | 665 | { |
| 668 | part = ON_HEADER_LINE; | 666 | part = ON_HEADER_LINE; |
| @@ -708,7 +706,7 @@ coordinates_in_window (w, x, y) | |||
| 708 | ? (*x >= left_x + WINDOW_LEFT_FRINGE_WIDTH (w)) | 706 | ? (*x >= left_x + WINDOW_LEFT_FRINGE_WIDTH (w)) |
| 709 | : (*x < left_x + lmargin_width))) | 707 | : (*x < left_x + lmargin_width))) |
| 710 | { | 708 | { |
| 711 | *x -= x0; | 709 | *x -= left_x; |
| 712 | if (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w)) | 710 | if (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w)) |
| 713 | *x -= WINDOW_LEFT_FRINGE_WIDTH (w); | 711 | *x -= WINDOW_LEFT_FRINGE_WIDTH (w); |
| 714 | *y -= top_y; | 712 | *y -= top_y; |