colorpick rework, color popup for titler, color convert fixes
[goodguy/history.git] / cinelerra-5.1 / cinelerra / cicolors.C
index 8b99fb5c7f8962af9024174f592aa9b7950334d0..2dba6f87eb127812aed34164f88c1a8c021d3494 100644 (file)
@@ -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;