face))
(defun gamegrid-make-color-tty-face (color)
- (let* ((hex (gamegrid-color color 1.0))
- (name (intern (format "gamegrid-color-tty-face-%s" hex)))
+ (let* ((color-str (symbol-value color))
+ (name (intern (format "gamegrid-color-tty-face-%s" color-str)))
(face (make-face name)))
- (gamegrid-setup-face face color)
+ (gamegrid-setup-face face color-str)
face))
(defun gamegrid-make-grid-x-face ()
(let* ((hex (gamegrid-color color 1.0))
(name (intern (format "gamegrid-color-x-face-%s" hex)))
(face (make-face name)))
- (gamegrid-setup-face face (gamegrid-color color 1.0))
+ (gamegrid-setup-face face hex)
face))
(defun gamegrid-make-face (data-spec-list color-spec-list)
(let ((window-system-p
(or (and (fboundp 'console-on-window-system-p)
(console-on-window-system-p))
+ (and (fboundp 'display-color-p)
+ (display-color-p))
window-system)))
(cond ((and gamegrid-use-glyphs
window-system-p