From 2888a2e076e0ffea098b435b8b124acaeb6a5d0b Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Fri, 26 Aug 2022 13:12:15 +0300 Subject: [PATCH] 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. --- lisp/play/gamegrid.el | 2 ++ 1 file changed, 2 insertions(+) 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))