]>
Commit | Line | Data |
---|---|---|
3cc08688 AM |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.3.073 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.3.073 | |
11 | Problem: Win32 GUI: When the Vim window is partly above or below the | |
12 | screen, scrolling causes display errors when the taskbar is not on | |
13 | that side. | |
14 | Solution: Use the SW_INVALIDATE flag when the Vim window is partly below or | |
15 | above the screen. | |
16 | Files: src/gui_w48.c | |
17 | ||
18 | ||
19 | *** ../vim-6.3.016/src/gui_w48.c Thu Dec 16 14:26:44 2004 | |
20 | --- src/gui_w48.c Sun May 22 12:06:07 2005 | |
21 | *************** | |
22 | *** 2504,2509 **** | |
23 | --- 2504,2517 ---- | |
24 | RECT rcVim, rcOther, rcDest; | |
25 | ||
26 | GetWindowRect(s_hwnd, &rcVim); | |
27 | + | |
28 | + /* Check if the window is partly above or below the screen. We don't care | |
29 | + * about partly left or right of the screen, it is not relevant when | |
30 | + * scrolling up or down. */ | |
31 | + if (rcVim.top < 0 || rcVim.bottom > GetSystemMetrics(SM_CYFULLSCREEN)) | |
32 | + return SW_INVALIDATE; | |
33 | + | |
34 | + /* Check if there is an window (partly) on top of us. */ | |
35 | for (hwnd = s_hwnd; (hwnd = GetWindow(hwnd, GW_HWNDPREV)) != (HWND)0; ) | |
36 | if (IsWindowVisible(hwnd)) | |
37 | { | |
38 | *** ../vim-6.3.016/src/version.c Fri May 20 13:18:31 2005 | |
39 | --- src/version.c Sun May 22 12:08:44 2005 | |
40 | *************** | |
41 | *** 643,644 **** | |
42 | --- 643,646 ---- | |
43 | { /* Add new patch number below this line */ | |
44 | + /**/ | |
45 | + 73, | |
46 | /**/ | |
47 | ||
48 | -- | |
49 | TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT | |
50 | SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE | |
51 | KILLED BY THE RABBIT) | |
52 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
53 | ||
54 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
55 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
56 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
57 | \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html /// |