]> git.eshelyaron.com Git - emacs.git/commit
Simplify building of color names in image.c
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Jan 2025 06:15:48 +0000 (22:15 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:06:24 +0000 (19:06 +0100)
commit6d2159bcd8ba20801a09ed6c9f09ab62c418142e
tree1629e1cb15e3a650917d25538b5934b6262a95e3
parent9083b79a4d4b3ecc48e03cb00fcc79ef74ffe878
Simplify building of color names in image.c

* src/image.c (make_color_name): New function.
(image_background, image_build_heuristic_mask, png_load_body): Use it.

(cherry picked from commit 028fae966142b6e2330b9250fb4cdf2cbd8e1446)
src/image.c