Mercurial > emacs
comparison src/macterm.c @ 83162:dbcd0af66869
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-409
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-410
Make sure image types are initialized for lookup too
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-411
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-412
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-413
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-414
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-415
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-416
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-417
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-418
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-419
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-202
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Thu, 24 Jun 2004 07:44:13 +0000 |
parents | 9fb10038ca55 5e784b2ea638 |
children | e8df1878cfd1 |
comparison
equal
deleted
inserted
replaced
83161:8d62eda26760 | 83162:dbcd0af66869 |
---|---|
8838 | 8838 |
8839 dpyinfo->reference_count = 0; | 8839 dpyinfo->reference_count = 0; |
8840 dpyinfo->resx = 75.0; | 8840 dpyinfo->resx = 75.0; |
8841 dpyinfo->resy = 75.0; | 8841 dpyinfo->resy = 75.0; |
8842 dpyinfo->color_p = TestDeviceAttribute (main_device_handle, gdDevType); | 8842 dpyinfo->color_p = TestDeviceAttribute (main_device_handle, gdDevType); |
8843 #ifdef MAC_OSX | |
8844 /* HasDepth returns true if it is possible to have a 32 bit display, | |
8845 but this may not be what is actually used. Mac OSX can do better. */ | |
8846 dpyinfo->n_planes = CGDisplayBitsPerPixel (CGMainDisplayID ()); | |
8847 #else | |
8843 for (dpyinfo->n_planes = 32; dpyinfo->n_planes > 0; dpyinfo->n_planes >>= 1) | 8848 for (dpyinfo->n_planes = 32; dpyinfo->n_planes > 0; dpyinfo->n_planes >>= 1) |
8844 if (HasDepth (main_device_handle, dpyinfo->n_planes, | 8849 if (HasDepth (main_device_handle, dpyinfo->n_planes, |
8845 gdDevType, dpyinfo->color_p)) | 8850 gdDevType, dpyinfo->color_p)) |
8846 break; | 8851 break; |
8852 #endif | |
8847 dpyinfo->height = (**main_device_handle).gdRect.bottom; | 8853 dpyinfo->height = (**main_device_handle).gdRect.bottom; |
8848 dpyinfo->width = (**main_device_handle).gdRect.right; | 8854 dpyinfo->width = (**main_device_handle).gdRect.right; |
8849 dpyinfo->grabbed = 0; | 8855 dpyinfo->grabbed = 0; |
8850 dpyinfo->root_window = NULL; | 8856 dpyinfo->root_window = NULL; |
8851 dpyinfo->image_cache = make_image_cache (); | 8857 dpyinfo->image_cache = make_image_cache (); |