]> granicus.if.org Git - vim/commitdiff
updated for version 7.0075
authorBram Moolenaar <Bram@vim.org>
Sun, 22 May 2005 22:03:39 +0000 (22:03 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 22 May 2005 22:03:39 +0000 (22:03 +0000)
src/gui_w48.c

index 48a87d945321b869db7c6d9ffba6f78c646b565b..4729f9b1d93f36f18898818249ff94eef1ff7494 100644 (file)
@@ -2512,6 +2512,14 @@ get_scroll_flags(void)
     RECT       rcVim, rcOther, rcDest;
 
     GetWindowRect(s_hwnd, &rcVim);
+
+    /* Check if the window is partly above or below the screen.  We don't care
+     * about partly left or right of the screen, it is not relevant when
+     * scrolling up or down. */
+    if (rcVim.top < 0 || rcVim.bottom > GetSystemMetrics(SM_CYFULLSCREEN))
+       return SW_INVALIDATE;
+
+    /* Check if there is an window (partly) on top of us. */
     for (hwnd = s_hwnd; (hwnd = GetWindow(hwnd, GW_HWNDPREV)) != (HWND)0; )
        if (IsWindowVisible(hwnd))
        {