Commit 5a98616e authored by Eli Zaretskii's avatar Eli Zaretskii

(compute_tip_xy): Put tip above pointer if it doesn't fit below.

parent ed0e3879
2005-12-02 Eli Zaretskii <eliz@gnu.org>
* w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
fit below.
2005-12-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* xterm.h: Add prototype for xg_set_icon_from_xpm_data.
......
......@@ -7413,6 +7413,9 @@ compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y)
*root_y = XINT (top);
else if (*root_y + XINT (dy) - height < 0)
*root_y -= XINT (dy);
/* If there's not enough place below the pointer, put tip above it. */
else if (*root_y + XINT (dy) >= FRAME_W32_DISPLAY_INFO (f)->height)
*root_y -= XINT (dy);
else
{
*root_y -= height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment