OSDN Git Service

vim-app fix transparency cocoa
authorKazuki Sakamoto <sakamoto@splhack.org>
Thu, 26 Mar 2009 11:37:24 +0000 (20:37 +0900)
committerKazuki Sakamoto <sakamoto@splhack.org>
Thu, 26 Mar 2009 11:37:24 +0000 (20:37 +0900)
editors/vim-app/files/patch-option-cocoa.c

index 33934a2..6828178 100644 (file)
@@ -9,16 +9,23 @@
      {"ttimeout",    NULL,   P_BOOL|P_VI_DEF|P_VIM,
                            (char_u *)&p_ttimeout, PV_NONE,
                            {(char_u *)FALSE, (char_u *)0L}},
-@@ -8004,10 +8004,10 @@
+@@ -8004,15 +8004,14 @@
  #endif
  
  #if defined(FEAT_GUI_COCOA)
 -     /* 'transparency' is a number between 0 and 100 */
-+     /* 'transparency' is a number between 0 and 255 */
++     /* 'transparency' is a number between 1 and 255 */
      else if (pp == &p_transp)
      {
 -        if (p_transp < 0 || p_transp > 100)
-+        if (p_transp < 0 || p_transp > 255)
++        if (p_transp < 1 || p_transp > 255)
          {
-             errmsg = e_invarg;
-             p_transp = old_value;
+-            errmsg = e_invarg;
+-            p_transp = old_value;
++            p_transp = 255;
+         }
+-        else if (gui.in_use)
++        if (gui.in_use)
+             gui_mch_new_colors();
+     }
+ #endif