Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
466539bc
Commit
466539bc
authored
May 15, 2000
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(coordinates_in_window): Subtract 1 when computing right_x.
parent
b1e11b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/window.c
src/window.c
+4
-2
No files found.
src/window.c
View file @
466539bc
...
...
@@ -458,10 +458,12 @@ coordinates_in_window (w, x, y)
int
left_x
,
right_x
,
top_y
,
bottom_y
;
int
flags_area_width
=
FRAME_LEFT_FLAGS_AREA_WIDTH
(
f
);
/* In what's below, we subtract 1 when computing right_x because we
want the rightmost pixel, which is given by left_pixel+width-1. */
if
(
w
->
pseudo_window_p
)
{
left_x
=
0
;
right_x
=
XFASTINT
(
w
->
width
)
*
CANON_Y_UNIT
(
f
);
right_x
=
XFASTINT
(
w
->
width
)
*
CANON_Y_UNIT
(
f
)
-
1
;
top_y
=
WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y
(
w
);
bottom_y
=
WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y
(
w
);
}
...
...
@@ -469,7 +471,7 @@ coordinates_in_window (w, x, y)
{
left_x
=
(
WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X
(
w
)
-
FRAME_INTERNAL_BORDER_WIDTH_SAFE
(
f
));
right_x
=
WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X
(
w
);
right_x
=
WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X
(
w
)
-
1
;
top_y
=
(
WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y
(
w
)
-
FRAME_INTERNAL_BORDER_WIDTH_SAFE
(
f
));
bottom_y
=
WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y
(
w
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment