changeset 103196:e0a85c405ceb

* nsfns.m (Fx_display_planes): Compute bitplanes using NSBitsPerPixelFromDepth (Bug#3207).
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 10 May 2009 22:21:17 +0000
parents 22f651c59c50
children 0c6730c52151
files src/ChangeLog src/nsfns.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun May 10 22:01:20 2009 +0000
+++ b/src/ChangeLog	Sun May 10 22:21:17 2009 +0000
@@ -1,3 +1,8 @@
+2009-05-07  David Reitter  <david.reitter@gmail.com>
+
+	* nsfns.m (Fx_display_planes): Compute bitplanes using
+	NSBitsPerPixelFromDepth (Bug#3207).
+
 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
 
 	* editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
--- a/src/nsfns.m	Sun May 10 22:01:20 2009 +0000
+++ b/src/nsfns.m	Sun May 10 22:21:17 2009 +0000
@@ -2383,7 +2383,7 @@
 {
   check_ns ();
   return make_number
-    (NSBitsPerSampleFromDepth ([ns_get_screen (display) depth]));
+    (NSBitsPerPixelFromDepth ([ns_get_screen (display) depth]));
 }