Mercurial > emacs
comparison src/nsfns.m @ 109233:9f1761f40039
Merge from mainline.
author | Katsumi Yamaoka <katsumi@flagship2> |
---|---|
date | Tue, 29 Jun 2010 12:08:56 +0000 |
parents | 8c3d79992849 |
children | 8c569638df0f |
comparison
equal
deleted
inserted
replaced
109232:bb675fbc7bc6 | 109233:9f1761f40039 |
---|---|
81 extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth; | 81 extern Lisp_Object Qheight, Qminibuffer, Qname, Qonly, Qwidth; |
82 extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; | 82 extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle; |
83 extern Lisp_Object Qnone; | 83 extern Lisp_Object Qnone; |
84 extern Lisp_Object Vframe_title_format; | 84 extern Lisp_Object Vframe_title_format; |
85 | 85 |
86 /* The below are defined in frame.c. */ | |
87 | |
88 extern Lisp_Object Vmenu_bar_mode, Vtool_bar_mode; | |
89 | |
86 Lisp_Object Qbuffered; | 90 Lisp_Object Qbuffered; |
87 Lisp_Object Qfontsize; | 91 Lisp_Object Qfontsize; |
88 | 92 |
89 /* hack for OS X file panels */ | 93 /* hack for OS X file panels */ |
90 char panelOK = 0; | 94 char panelOK = 0; |
222 else if (FRAMEP (screen)) | 226 else if (FRAMEP (screen)) |
223 f = XFRAME (screen); | 227 f = XFRAME (screen); |
224 else | 228 else |
225 { | 229 { |
226 struct ns_display_info *dpyinfo = terminal->display_info.ns; | 230 struct ns_display_info *dpyinfo = terminal->display_info.ns; |
227 f = (dpyinfo->x_focus_frame || dpyinfo->x_highlight_frame); | 231 f = dpyinfo->x_focus_frame |
232 ? dpyinfo->x_focus_frame : dpyinfo->x_highlight_frame; | |
228 } | 233 } |
229 | 234 |
230 return ((f && FRAME_NS_P (f)) ? [[FRAME_NS_VIEW (f) window] screen] | 235 return ((f && FRAME_NS_P (f)) ? [[FRAME_NS_VIEW (f) window] screen] |
231 : NULL); | 236 : NULL); |
232 } | 237 } |
2379 DISPLAY should be either a frame, a display name (a string), or terminal ID. | 2384 DISPLAY should be either a frame, a display name (a string), or terminal ID. |
2380 If omitted or nil, that stands for the selected frame's display. */) | 2385 If omitted or nil, that stands for the selected frame's display. */) |
2381 (display) | 2386 (display) |
2382 Lisp_Object display; | 2387 Lisp_Object display; |
2383 { | 2388 { |
2384 check_ns (); | 2389 struct ns_display_info *dpyinfo; |
2385 struct ns_display_info *dpyinfo = check_ns_display_info (display); | 2390 check_ns (); |
2386 | 2391 |
2392 dpyinfo = check_ns_display_info (display); | |
2387 /* We force 24+ bit depths to 24-bit to prevent an overflow. */ | 2393 /* We force 24+ bit depths to 24-bit to prevent an overflow. */ |
2388 return make_number (1 << min (dpyinfo->n_planes, 24)); | 2394 return make_number (1 << min (dpyinfo->n_planes, 24)); |
2389 } | 2395 } |
2390 | 2396 |
2391 | 2397 |