[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/macterm.c [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/macterm.c [lexbind] |
Date: |
Tue, 06 Jul 2004 07:03:08 -0400 |
Index: emacs/src/macterm.c
diff -c emacs/src/macterm.c:1.3.2.14 emacs/src/macterm.c:1.3.2.15
*** emacs/src/macterm.c:1.3.2.14 Tue Jul 6 09:31:30 2004
--- emacs/src/macterm.c Tue Jul 6 10:17:21 2004
***************
*** 8840,8849 ****
--- 8840,8855 ----
dpyinfo->resx = 75.0;
dpyinfo->resy = 75.0;
dpyinfo->color_p = TestDeviceAttribute (main_device_handle, gdDevType);
+ #ifdef MAC_OSX
+ /* HasDepth returns true if it is possible to have a 32 bit display,
+ but this may not be what is actually used. Mac OSX can do better. */
+ dpyinfo->n_planes = CGDisplayBitsPerPixel (CGMainDisplayID ());
+ #else
for (dpyinfo->n_planes = 32; dpyinfo->n_planes > 0; dpyinfo->n_planes >>= 1)
if (HasDepth (main_device_handle, dpyinfo->n_planes,
gdDevType, dpyinfo->color_p))
break;
+ #endif
dpyinfo->height = (**main_device_handle).gdRect.bottom;
dpyinfo->width = (**main_device_handle).gdRect.right;
dpyinfo->grabbed = 0;