diff options
author | David Ponce <da_vid@orange.fr> | 2024-03-30 13:59:41 +0100 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-03-30 16:35:11 +0300 |
commit | cc212ea314d45c98761ae7f68600ad8bf799ea36 (patch) | |
tree | db4479c9e02708a62ca6ec786002a806e818a8af /lisp/emacs-lisp/regexp-opt.el | |
parent | 87be53846bfbf5a6387cb5a40105bd0fc5b48b38 (diff) | |
download | emacs-cc212ea314d45c98761ae7f68600ad8bf799ea36.tar.gz emacs-cc212ea314d45c98761ae7f68600ad8bf799ea36.tar.bz2 emacs-cc212ea314d45c98761ae7f68600ad8bf799ea36.zip |
bug#69992: Minor improvement to image map transformation logic
* lisp/image.el (image--compute-rotation): New function.
(image--compute-map, image--compute-original-map): Use it.
Ensure all transformations are applied or undone according to what
Emacs does internally. Call a transformation function only when
needed. Fix doc string.
(image--scale-map, image--rotate-map): Assume effective scale
argument.
(image--rotate-coord): Improve doc string.
(image--flip-map): Remove no more used argument FLIP.
* test/lisp/image-tests.el (image-create-image-with-map): Use a
valid SVG image otherwise `image-size' will not return a valid
value and calculation of scale could fail.
(image-transform-map): Update according to changed signature of
`image--flip-map'.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions