emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/w32fns.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/w32fns.c
Date: Wed, 14 Dec 2005 20:58:33 +0000

Index: emacs/src/w32fns.c
diff -u emacs/src/w32fns.c:1.260 emacs/src/w32fns.c:1.261
--- emacs/src/w32fns.c:1.260    Mon Dec 12 09:32:59 2005
+++ emacs/src/w32fns.c  Wed Dec 14 20:58:33 2005
@@ -7411,6 +7411,8 @@
 
   if (INTEGERP (top))
     *root_y = XINT (top);
+  else if (*root_y + XINT (dy) <= 0)
+    *root_y = 0; /* Can happen for negative dy */
   else if (*root_y + XINT (dy) + height <= FRAME_W32_DISPLAY_INFO (f)->height)
     /* It fits below the pointer */
       *root_y += XINT (dy);
@@ -7423,6 +7425,8 @@
 
   if (INTEGERP (left))
     *root_x = XINT (left);
+  else if (*root_x + XINT (dx) <= 0)
+    *root_x = 0; /* Can happen for negative dx */
   else if (*root_x + XINT (dx) + width <= FRAME_W32_DISPLAY_INFO (f)->width)
     /* It fits to the right of the pointer.  */
     *root_x += XINT (dx);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]