]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix recent gamegrid.el change for nox build
authorBasil L. Contovounesios <contovob@tcd.ie>
Fri, 26 Aug 2022 10:12:15 +0000 (13:12 +0300)
committerBasil L. Contovounesios <contovob@tcd.ie>
Fri, 26 Aug 2022 10:12:15 +0000 (13:12 +0300)
* 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.

lisp/play/gamegrid.el

index 8da4205af5944aa2443b1a49baa684fc349ce33a..8cff67c5bcc0f926fdbf38c00f43f87ba3dfab71 100644 (file)
@@ -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))