summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeiji Zenitani <zenitani@mac.com>2008-12-07 05:00:54 +0000
committerSeiji Zenitani <zenitani@mac.com>2008-12-07 05:00:54 +0000
commitaa96c42b3a01bd2238cf421a4677fad9adf229da (patch)
treee4e08f1eb3710daa77424c4047b5972041b99a96
parentdf36ff1f38e46e3bedc3ccab2a584ad5925ef497 (diff)
downloademacs-aa96c42b3a01bd2238cf421a4677fad9adf229da.tar.gz
* nsfns.m (ns_set_background_color): Remove code duplication.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsfns.m8
2 files changed, 5 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3b40c99fa88..8672bb2b240 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
diff --git a/src/nsfns.m b/src/nsfns.m
index df5c7e13daf..0f7b6318e63 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -389,14 +389,6 @@ ns_set_background_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
[[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