From 7fc3536a05b958d401780ee958c0162ceaba9aba Mon Sep 17 00:00:00 2001 From: Rasmus Pank Roulund Date: Mon, 13 Jul 2026 12:51:43 +0200 Subject: [PATCH] ghostel-kitty: retain scale of images to ensure they are not cropped --- lisp/ghostel-kitty.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/ghostel-kitty.el b/lisp/ghostel-kitty.el index b6d763af..78fdb8fd 100644 --- a/lisp/ghostel-kitty.el +++ b/lisp/ghostel-kitty.el @@ -189,6 +189,7 @@ user shouldn't have to trigger one)." (img (create-image data (if is-png 'png 'pbm) t :width (* g-cols cw) :height (* g-rows ch) + :scale 1 :ascent 'center)) (skip (max 0 abs-row)) (start-row (max 0 (- abs-row))) @@ -267,6 +268,7 @@ DATA is a unibyte string (PNG or PPM). IS-PNG is non-nil for PNG." (setq img (create-image data (if is-png 'png 'pbm) t :width (* grid-cols cw) :height (* grid-rows ch) + :scale 1 :ascent 'center)) ;; Second pass: apply per-row slices on placeholder regions. ;; Walks line by line — `line-end-position' is O(1) with no