changeset 30542:f03ab02d1f4e

(lm-font-lock-face-O, lm-font-lock-face-X) (lm-plot-square, lm-init-display): Don't use window-system.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 31 Jul 2000 15:37:49 +0000
parents d5e4d3d5012c
children cae243d66bbe
files lisp/play/landmark.el
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/play/landmark.el	Mon Jul 31 15:36:50 2000 +0000
+++ b/lisp/play/landmark.el	Mon Jul 31 15:37:49 2000 +0000
@@ -217,12 +217,12 @@
   "*For making font-lock use the winner's face for the line.")
 
 (defvar lm-font-lock-face-O
-  (if window-system
+  (if (display-color-p)
       (list (facemenu-get-face 'fg:red) 'bold))
   "*Face to use for Emacs' O.")
 
 (defvar lm-font-lock-face-X
-  (if window-system
+  (if (display-color-p)
       (list (facemenu-get-face 'fg:green) 'bold))
   "*Face to use for your X.")
 
@@ -893,8 +893,7 @@
 			      ((= value 5) ?W)
 			      ((= value 6) ?^)))
 
-    (and window-system
-	 (zerop value)
+    (and (zerop value)
 	 (put-text-property (1- (point)) (point) 'mouse-face 'highlight))
     (delete-char 1)
     (backward-char 1))
@@ -934,9 +933,8 @@
 		      (goto-char (point-max))))
 	       (setq point (point))
 	       (insert ?=)
-	       (if window-system
-		   (put-text-property point (point)
-				      'mouse-face 'highlight)))
+	       (put-text-property point (point)
+				  'mouse-face 'highlight))
 	     (> (setq i (1- i)) 0))
       (if (= i (1- m))
 	  (setq opoint point))