changeset 67269:a14e3b63c666

(compute_tip_xy): Put tip above pointer if it doesn't fit below.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 02 Dec 2005 18:31:50 +0000
parents 8a4977eb2141
children e0810d1e2a3e
files src/w32fns.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Fri Dec 02 15:08:49 2005 +0000
+++ b/src/w32fns.c	Fri Dec 02 18:31:50 2005 +0000
@@ -7413,6 +7413,9 @@
     *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;