summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2022-08-26 13:12:15 +0300
committerBasil L. Contovounesios <contovob@tcd.ie>2022-08-26 13:12:15 +0300
commit2888a2e076e0ffea098b435b8b124acaeb6a5d0b (patch)
tree47d09dcbc08bb558b0b6a14de327f38c174278e9
parent0f561d0e5c4e7c4fa1dbc70d55de935ebb04cdbb (diff)
downloademacs-2888a2e076e0ffea098b435b8b124acaeb6a5d0b.tar.gz
Fix recent gamegrid.el change for nox build
* lisp/play/gamegrid.el (gamegrid-make-glyph): Declare image-scaling-factor as special before dynamically binding it, for the sake of --without-x builds which do not preload lisp/image.el.
-rw-r--r--lisp/play/gamegrid.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/play/gamegrid.el b/lisp/play/gamegrid.el
index 8da4205af59..8cff67c5bcc 100644
--- a/lisp/play/gamegrid.el
+++ b/lisp/play/gamegrid.el
@@ -347,6 +347,8 @@ format."
(gamegrid-match-spec-list (cdr spec-list)))))
(defun gamegrid-make-glyph (data-spec-list color-spec-list)
+ ;; image.el is not preloaded in --without-x builds.
+ (defvar image-scaling-factor)
(let ((data (gamegrid-match-spec-list data-spec-list))
(color (gamegrid-match-spec-list color-spec-list))
(image-scaling-factor 1.0))