X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcicolors.C;h=2dba6f87eb127812aed34164f88c1a8c021d3494;hb=5c3e5d5e76c29b49708b4e42d194402150b508ab;hp=8b99fb5c7f8962af9024174f592aa9b7950334d0;hpb=77815ec03df6a03ed75433e8cf8ae1e83fb76d6e;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/cicolors.C b/cinelerra-5.1/cinelerra/cicolors.C index 8b99fb5c..2dba6f87 100644 --- a/cinelerra-5.1/cinelerra/cicolors.C +++ b/cinelerra-5.1/cinelerra/cicolors.C @@ -47,8 +47,8 @@ int HSV::rgb_to_hsv(float r, float g, float b, float &h, float &s, float &v) 4 + (r - g) / delta; // between magenta & cyan if( (h*=60) < 0 ) h += 360; // degrees } - else { // r = g = b = 0 - h = -1; s = 0; v = 0; // s = 0, v is undefined + else { // r = g = b + h = 0; s = 0; v = max; } return 0;