From: Chong Yidong Date: Sun, 10 May 2009 22:21:17 +0000 (+0000) Subject: * nsfns.m (Fx_display_planes): Compute bitplanes using X-Git-Tag: emacs-pretest-23.0.94~76 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b91266095543d914ec35b3f289abf2dd2bdf8531;p=emacs.git * nsfns.m (Fx_display_planes): Compute bitplanes using NSBitsPerPixelFromDepth (Bug#3207). --- diff --git a/src/ChangeLog b/src/ChangeLog index b02b2e7931b..0d9c4dd196b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-05-07 David Reitter + + * nsfns.m (Fx_display_planes): Compute bitplanes using + NSBitsPerPixelFromDepth (Bug#3207). + 2009-05-10 Chong Yidong * editfns.c (Ftranspose_regions): Doc fix (Bug#3248). diff --git a/src/nsfns.m b/src/nsfns.m index 13f9953554f..01ffcf1181c 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -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])); }