* nsfns.m (Fx_display_planes): Compute bitplanes using
authorChong Yidong <cyd@stupidchicken.com>
Sun, 10 May 2009 22:21:17 +0000 (22:21 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 10 May 2009 22:21:17 +0000 (22:21 +0000)
NSBitsPerPixelFromDepth (Bug#3207).

src/ChangeLog
src/nsfns.m

index b02b2e7..0d9c4dd 100644 (file)
@@ -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).
index 13f9953..01ffcf1 100644 (file)
@@ -2383,7 +2383,7 @@ If omitted or nil, that stands for the selected frame's display.  */)
 {
   check_ns ();
   return make_number
-    (NSBitsPerSampleFromDepth ([ns_get_screen (display) depth]));
+    (NSBitsPerPixelFromDepth ([ns_get_screen (display) depth]));
 }