mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
(coordinates_in_window): Remove redundant tests.
Fix returned X pixel value for left-margin.
This commit is contained in:
parent
3d56670718
commit
0de01dfe8a
1 changed files with 2 additions and 4 deletions
|
|
@ -632,8 +632,7 @@ coordinates_in_window (w, x, y)
|
|||
scroll bars. */
|
||||
|
||||
if (WINDOW_WANTS_MODELINE_P (w)
|
||||
&& *y >= bottom_y - CURRENT_MODE_LINE_HEIGHT (w)
|
||||
&& *y < bottom_y)
|
||||
&& *y >= bottom_y - CURRENT_MODE_LINE_HEIGHT (w))
|
||||
{
|
||||
part = ON_MODE_LINE;
|
||||
|
||||
|
|
@ -662,7 +661,6 @@ coordinates_in_window (w, x, y)
|
|||
}
|
||||
|
||||
if (WINDOW_WANTS_HEADER_LINE_P (w)
|
||||
&& *y >= top_y
|
||||
&& *y < top_y + CURRENT_HEADER_LINE_HEIGHT (w))
|
||||
{
|
||||
part = ON_HEADER_LINE;
|
||||
|
|
@ -708,7 +706,7 @@ coordinates_in_window (w, x, y)
|
|||
? (*x >= left_x + WINDOW_LEFT_FRINGE_WIDTH (w))
|
||||
: (*x < left_x + lmargin_width)))
|
||||
{
|
||||
*x -= x0;
|
||||
*x -= left_x;
|
||||
if (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w))
|
||||
*x -= WINDOW_LEFT_FRINGE_WIDTH (w);
|
||||
*y -= top_y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue