changeset 100263:b78192f63101

* nsfns.m (ns_set_background_color): Remove code duplication.
author Seiji Zenitani <zenitani@mac.com>
date Sun, 07 Dec 2008 05:00:54 +0000
parents 46114a72fb0e
children a0670e982459
files src/ChangeLog src/nsfns.m
diffstat 2 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Dec 07 00:58:47 2008 +0000
+++ b/src/ChangeLog	Sun Dec 07 05:00:54 2008 +0000
@@ -1,3 +1,8 @@
+2008-12-07  Seiji Zenitani  <zenitani@mac.com>
+
+	* nsfns.m (ns_set_background_color): Remove code duplication.
+	It was a substite for face-transparency on OS X 10.3.
+
 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
 
 	* coding.c (make_conversion_work_buffer): Disable buffer
--- a/src/nsfns.m	Sun Dec 07 00:58:47 2008 +0000
+++ b/src/nsfns.m	Sun Dec 07 05:00:54 2008 +0000
@@ -389,14 +389,6 @@
       [[view window] setBackgroundColor: col];
       alpha = [col alphaComponent];
 
-#ifdef NS_IMPL_COCOA
-      /* the alpha code below only works on 10.4, so we need to do something
-         else (albeit less good) otherwise.
-         Check NSApplication.h for useful NSAppKitVersionNumber values. */
-      if (NSAppKitVersionNumber < 744.0)
-          [[view window] setAlphaValue: alpha];
-#endif
-
       if (alpha != 1.0)
           [[view window] setOpaque: NO];
       else