From 3f8600ae72e5ddf899f611475fd72603e2430645 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 16 Sep 1994 08:51:35 +0000 Subject: [PATCH] (Fx_display_grayscale_p): Check for > 1 pane. --- src/xfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xfns.c b/src/xfns.c index 0fc157baf85..5cc17d674a5 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3018,7 +3018,7 @@ DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, { check_x (); - return (x_screen_planes > 2 + return (x_screen_planes > 1 && (screen_visual->class == StaticGray || screen_visual->class == GrayScale)); } -- 2.39.5