]> git.eshelyaron.com Git - emacs.git/commit
Make Snake, Tetris and Pong adjust to display DPI
authorGemini Lasswell <gazally@runbox.com>
Mon, 16 Oct 2017 15:30:51 +0000 (08:30 -0700)
committerGemini Lasswell <gazally@runbox.com>
Tue, 24 Oct 2017 16:02:49 +0000 (09:02 -0700)
commitcb73c70180f57f3fb99fae3aaefbacf0a61cea3f
tree67dab0331e0b70c3176ca5f536f35b0bd3591eff
parent4ec0d2dc6f149c4c14833793f20e1e54270b85f2
Make Snake, Tetris and Pong adjust to display DPI

Replace gamegrid's constant 16x16 glyph with a generated one based
on display dimensions (bug#24658).
* lisp/play/gamegrid.el (gamegrid-glyph-height-mm): New variable.
(gamegrid-glyph-height): Deleted.
(gamegrid-xpm, gamegrid-xbm): Constants replaced with functions.
(gamegrid-colorize-glyph): Use new functions instead of constants.
(gamegrid-calculate-glyph-size, gamegrid-insert-xbm-bits): New
functions.
etc/NEWS
lisp/play/gamegrid.el