+2007-10-07 John Paul Wallington <jpw@pobox.com>
+
+ * xfns.c (x_create_tip_frame): Set the `display-type' frame
+ parameter before setting up faces.
+
2007-10-13 Eli Zaretskii <eliz@gnu.org>
- * ccl.c (Fregister_code_conversion_map):
+ * ccl.c (Fregister_code_conversion_map):
* keyboard.c (append_tool_bar_item): Reformat last change.
* lisp.h (eabs): Rename from `abs'. All callers changed.
* keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
(append_tool_bar_item):
* macmenu.c (grow_menu_items):
- * w32menu.c (grow_menu_items):
+ * w32menu.c (grow_menu_items):
* xmenu.c (grow_menu_items): Use larger_vector.
-
+
2007-10-13 Eli Zaretskii <eliz@gnu.org>
* msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt),
Qnil));
+ /* Set the `display-type' frame parameter before setting up faces. */
+ {
+ Lisp_Object disptype;
+
+ if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1)
+ disptype = intern ("mono");
+ else if (FRAME_X_DISPLAY_INFO (f)->visual->class == GrayScale ||
+ FRAME_X_DISPLAY_INFO (f)->visual->class == StaticGray)
+ disptype = intern ("grayscale");
+ else
+ disptype = intern ("color");
+
+ if (NILP (Fframe_parameter (frame, Qdisplay_type)))
+ Fmodify_frame_parameters (frame, Fcons (Fcons (Qdisplay_type, disptype),
+ Qnil));
+ }
+
/* Set up faces after all frame parameters are known. This call
also merges in face attributes specified for new frames.