]> git.eshelyaron.com Git - emacs.git/commit
Fix color component calculations in color.el
authorEli Zaretskii <eliz@gnu.org>
Fri, 3 Mar 2017 14:05:02 +0000 (16:05 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 3 Mar 2017 14:05:02 +0000 (16:05 +0200)
commit7b00e956b485d8ade03c870cbdd0ae086348737b
tree52c360b2ff1ea3bd394ecbed8a208fff9edc2069
parent244de7b0ed3bb23e700c9edef51e413602d8720a
Fix color component calculations in color.el

* lisp/color.el (color-name-to-rgb): Use 16 bits per color component.
(color-rgb-to-hex): Accept an optional argument
DIGITS-PER-COMPONENT, defaulting to 4, and format the hexadecimal
notation either for 8 or 16 bits per component.  (Bug#25890)
* lisp/net/shr-color.el (shr-color->hexadecimal): Call
color-rgb-to-hex with the optional argument of 2, to match color
processing on the Web.
lisp/color.el
lisp/net/shr-color.el