[gnus git] branch master updated: m0-5-142-ga867757 =1= color.el (color-hsl-to-rgb): Fix incorrect results for small and large hue values (Bug#12559)

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  a867757f1cf2e6a6ca88ea3a22415072195b6061 (commit)
      from  31b8b12378d6fe186001358e7098e0f2a7b154f2 (commit)


- Log -----------------------------------------------------------------
commit a867757f1cf2e6a6ca88ea3a22415072195b6061
Author: Julian Scheid <[email protected]>
Date:   Sat Oct 6 08:22:01 2012 +0000

    color.el (color-hsl-to-rgb): Fix incorrect results for small and large hue values (Bug#12559)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 58b1d70..e82d004 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-06  Julian Scheid  <[email protected]>  (tiny change)
+
+	* color.el (color-hsl-to-rgb): Fix incorrect results for
+	small and large hue values.  (Bug#12559)
+
 2012-10-05  Katsumi Yamaoka  <[email protected]>
 
 	New UIDL implementation.
diff --git a/lisp/color.el b/lisp/color.el
index 39b172d..843c12f 100644
--- a/lisp/color.el
+++ b/lisp/color.el
@@ -113,9 +113,9 @@ inclusive."
 		 (- (+ L S) (* L S))))
 	   (m1 (- (* 2.0 L) m2)))
       (list
-       (color-hue-to-rgb m1 m2 (+ H (/ 1.0 3)))
+       (color-hue-to-rgb m1 m2 (mod (+ H (/ 1.0 3)) 1))
        (color-hue-to-rgb m1 m2 H)
-       (color-hue-to-rgb m1 m2 (- H (/ 1.0 3)))))))
+       (color-hue-to-rgb m1 m2 (mod (- H (/ 1.0 3)) 1))))))
 
 (defun color-complement-hex (color)
   "Return the color that is the complement of COLOR, in hexadecimal format."

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    5 +++++
 lisp/color.el  |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.