diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-03-03 16:05:02 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-03-03 16:05:02 +0200 |
commit | 7b00e956b485d8ade03c870cbdd0ae086348737b (patch) | |
tree | 52c360b2ff1ea3bd394ecbed8a208fff9edc2069 /lisp/emacs-lisp/warnings.el | |
parent | 244de7b0ed3bb23e700c9edef51e413602d8720a (diff) | |
download | emacs-7b00e956b485d8ade03c870cbdd0ae086348737b.tar.gz emacs-7b00e956b485d8ade03c870cbdd0ae086348737b.tar.bz2 emacs-7b00e956b485d8ade03c870cbdd0ae086348737b.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/warnings.el')
0 files changed, 0 insertions, 0 deletions