diff options
| author | Gemini Lasswell | 2017-10-16 08:30:51 -0700 |
|---|---|---|
| committer | Gemini Lasswell | 2017-10-24 09:02:49 -0700 |
| commit | cb73c70180f57f3fb99fae3aaefbacf0a61cea3f (patch) | |
| tree | 67dab0331e0b70c3176ca5f536f35b0bd3591eff /etc | |
| parent | 4ec0d2dc6f149c4c14833793f20e1e54270b85f2 (diff) | |
| download | emacs-cb73c70180f57f3fb99fae3aaefbacf0a61cea3f.tar.gz emacs-cb73c70180f57f3fb99fae3aaefbacf0a61cea3f.zip | |
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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -82,6 +82,13 @@ globally or for individual definitions. | |||
| 82 | the XTerm window title. This feature is experimental and is disabled | 82 | the XTerm window title. This feature is experimental and is disabled |
| 83 | by default. | 83 | by default. |
| 84 | 84 | ||
| 85 | ** Gamegrid | ||
| 86 | |||
| 87 | --- | ||
| 88 | *** Gamegrid now determines its default glyph size based on display | ||
| 89 | dimensions, instead of always using 16 pixels. As a result, Tetris, | ||
| 90 | Snake and Pong are more playable on HiDPI displays. | ||
| 91 | |||
| 85 | 92 | ||
| 86 | * New Modes and Packages in Emacs 27.1 | 93 | * New Modes and Packages in Emacs 27.1 |
| 87 | 94 | ||