My MacPorts
Revision | dee9d8336cdebc227be2b6f7292adcbcaaec29d8 (tree) |
---|---|
Time | 2009-03-26 20:37:24 |
Author | Kazuki Sakamoto <sakamoto@splh...> |
Commiter | Kazuki Sakamoto |
vim-app fix transparency cocoa
@@ -9,16 +9,23 @@ | ||
9 | 9 | {"ttimeout", NULL, P_BOOL|P_VI_DEF|P_VIM, |
10 | 10 | (char_u *)&p_ttimeout, PV_NONE, |
11 | 11 | {(char_u *)FALSE, (char_u *)0L}}, |
12 | -@@ -8004,10 +8004,10 @@ | |
12 | +@@ -8004,15 +8004,14 @@ | |
13 | 13 | #endif |
14 | 14 | |
15 | 15 | #if defined(FEAT_GUI_COCOA) |
16 | 16 | - /* 'transparency' is a number between 0 and 100 */ |
17 | -+ /* 'transparency' is a number between 0 and 255 */ | |
17 | ++ /* 'transparency' is a number between 1 and 255 */ | |
18 | 18 | else if (pp == &p_transp) |
19 | 19 | { |
20 | 20 | - if (p_transp < 0 || p_transp > 100) |
21 | -+ if (p_transp < 0 || p_transp > 255) | |
21 | ++ if (p_transp < 1 || p_transp > 255) | |
22 | 22 | { |
23 | - errmsg = e_invarg; | |
24 | - p_transp = old_value; | |
23 | +- errmsg = e_invarg; | |
24 | +- p_transp = old_value; | |
25 | ++ p_transp = 255; | |
26 | + } | |
27 | +- else if (gui.in_use) | |
28 | ++ if (gui.in_use) | |
29 | + gui_mch_new_colors(); | |
30 | + } | |
31 | + #endif |