aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Potortì2002-09-13 13:33:57 +0000
committerFrancesco Potortì2002-09-13 13:33:57 +0000
commitba8cb9c56dfe9e87acccf62f4944284f14e6e59b (patch)
tree1a82bf723b64fe860b600a26d1cef763955279e0
parentc2f8b57c626d997176530f57ca2bf1104461ef87 (diff)
downloademacs-ba8cb9c56dfe9e87acccf62f4944284f14e6e59b.tar.gz
emacs-ba8cb9c56dfe9e87acccf62f4944284f14e6e59b.zip
(tetris-blank-options, tetris-cell-options):
Remove various redundant `(t nil)'. (tetris-border-options): Use color on tty if available.
-rw-r--r--lisp/play/tetris.el27
1 files changed, 12 insertions, 15 deletions
diff --git a/lisp/play/tetris.el b/lisp/play/tetris.el
index ea4025cdee4..04c88392aed 100644
--- a/lisp/play/tetris.el
+++ b/lisp/play/tetris.el
@@ -160,25 +160,14 @@ Element 0 is ignored."
160 160
161;; ;;;;;;;;;;;;; display options ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 161;; ;;;;;;;;;;;;; display options ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
162 162
163(defvar tetris-border-options
164 '(((glyph colorize)
165 (t ?\+))
166 ((color-x color-x)
167 (mono-x grid-x)
168 (t nil))
169 (((glyph color-x) [0.5 0.5 0.5])
170 (t nil))))
171
172(defvar tetris-blank-options 163(defvar tetris-blank-options
173 '(((glyph colorize) 164 '(((glyph colorize)
174 (t ?\040)) 165 (t ?\040))
175 ((color-x color-x) 166 ((color-x color-x)
176 (mono-x grid-x) 167 (mono-x grid-x)
177 (color-tty color-tty) 168 (color-tty color-tty))
178 (t nil))
179 (((glyph color-x) [0 0 0]) 169 (((glyph color-x) [0 0 0])
180 (color-tty "black") 170 (color-tty "black"))))
181 (t nil))))
182 171
183(defvar tetris-cell-options 172(defvar tetris-cell-options
184 '(((glyph colorize) 173 '(((glyph colorize)
@@ -187,11 +176,19 @@ Element 0 is ignored."
187 ((color-x color-x) 176 ((color-x color-x)
188 (mono-x mono-x) 177 (mono-x mono-x)
189 (color-tty color-tty) 178 (color-tty color-tty)
190 (mono-tty mono-tty) 179 (mono-tty mono-tty))
191 (t nil))
192 ;; color information is taken from tetris-x-colors and tetris-tty-colors 180 ;; color information is taken from tetris-x-colors and tetris-tty-colors
193 )) 181 ))
194 182
183(defvar tetris-border-options
184 '(((glyph colorize)
185 (t ?\+))
186 ((color-x color-x)
187 (mono-x grid-x)
188 (color-tty color-tty))
189 (((glyph color-x) [0.5 0.5 0.5])
190 (color-tty "white"))))
191
195(defvar tetris-space-options 192(defvar tetris-space-options
196 '(((t ?\040)) 193 '(((t ?\040))
197 nil 194 nil