diff options
| author | Richard M. Stallman | 1994-09-16 08:44:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-16 08:44:49 +0000 |
| commit | d0c9d2196c8fc31700fc22f0b89ae473f29ee845 (patch) | |
| tree | e49d220c20c1b253150831a9adb64823119807dc | |
| parent | c09603e9d2e31814d24680bd963c67a7418985dd (diff) | |
| download | emacs-d0c9d2196c8fc31700fc22f0b89ae473f29ee845.tar.gz emacs-d0c9d2196c8fc31700fc22f0b89ae473f29ee845.zip | |
(Fx_display_grayscale_p): New function.
(syms_of_xfns): defsubr it.
| -rw-r--r-- | src/xfns.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 32a3863498e..0fc157baf85 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3011,6 +3011,18 @@ DEFUN ("x-display-color-p", Fx_display_color_p, Sx_display_color_p, 0, 0, 0, | |||
| 3011 | } | 3011 | } |
| 3012 | } | 3012 | } |
| 3013 | 3013 | ||
| 3014 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, | ||
| 3015 | 0, 0, 0, | ||
| 3016 | "Return t if the X screen currently in use supports grayscale.") | ||
| 3017 | () | ||
| 3018 | { | ||
| 3019 | check_x (); | ||
| 3020 | |||
| 3021 | return (x_screen_planes > 2 | ||
| 3022 | && (screen_visual->class == StaticGray | ||
| 3023 | || screen_visual->class == GrayScale)); | ||
| 3024 | } | ||
| 3025 | |||
| 3014 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, | 3026 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, |
| 3015 | 0, 1, 0, | 3027 | 0, 1, 0, |
| 3016 | "Returns the width in pixels of the display FRAME is on.") | 3028 | "Returns the width in pixels of the display FRAME is on.") |
| @@ -4486,8 +4498,9 @@ or when you set the mouse color."); | |||
| 4486 | defsubr (&Sx_contour_region); | 4498 | defsubr (&Sx_contour_region); |
| 4487 | defsubr (&Sx_uncontour_region); | 4499 | defsubr (&Sx_uncontour_region); |
| 4488 | #endif | 4500 | #endif |
| 4489 | defsubr (&Sx_display_color_p); | ||
| 4490 | defsubr (&Sx_list_fonts); | 4501 | defsubr (&Sx_list_fonts); |
| 4502 | defsubr (&Sx_display_color_p); | ||
| 4503 | defsubr (&Sx_display_grayscale_p); | ||
| 4491 | defsubr (&Sx_color_defined_p); | 4504 | defsubr (&Sx_color_defined_p); |
| 4492 | defsubr (&Sx_color_values); | 4505 | defsubr (&Sx_color_values); |
| 4493 | defsubr (&Sx_server_max_request_size); | 4506 | defsubr (&Sx_server_max_request_size); |