summaryrefslogtreecommitdiff
path: root/lisp/facemenu.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2014-07-08 11:55:00 +0300
committerJuri Linkov <juri@jurta.org>2014-07-08 11:55:00 +0300
commitb08e34f03ac827e43310fe8aaa0c25bc7f12a034 (patch)
tree54e1eafea1488f9317a9b0314a400289f227cf2d /lisp/facemenu.el
parent50802fa8e234ba241036c7fded8a57c6088722ea (diff)
downloademacs-b08e34f03ac827e43310fe8aaa0c25bc7f12a034.tar.gz
* lisp/facemenu.el (list-colors-print): In help-echo format use %.2f
instead of %d because now HSV values are floating-point components between 0.0 and 1.0.
Diffstat (limited to 'lisp/facemenu.el')
-rw-r--r--lisp/facemenu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/facemenu.el b/lisp/facemenu.el
index 24613ecd236..678aca24c12 100644
--- a/lisp/facemenu.el
+++ b/lisp/facemenu.el
@@ -620,7 +620,7 @@ color. The function should accept a single argument, the color name."
'help-echo
(let ((hsv (apply 'color-rgb-to-hsv
(color-name-to-rgb (car color)))))
- (format "H:%d S:%d V:%d"
+ (format "H:%.2f S:%.2f V:%.2f"
(nth 0 hsv) (nth 1 hsv) (nth 2 hsv)))))
(when callback
(make-text-button