[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/macterm.c
From: |
Jan Djärv |
Subject: |
[Emacs-diffs] Changes to emacs/src/macterm.c |
Date: |
Thu, 17 Jun 2004 09:04:46 -0400 |
Index: emacs/src/macterm.c
diff -c emacs/src/macterm.c:1.70 emacs/src/macterm.c:1.71
*** emacs/src/macterm.c:1.70 Sun May 30 00:18:41 2004
--- emacs/src/macterm.c Thu Jun 17 13:04:09 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;
- [Emacs-diffs] Changes to emacs/src/macterm.c,
Jan Djärv <=