projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prevent btn2 TumbleTextBox updates when disabled
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
cicolors.C
diff --git
a/cinelerra-5.1/cinelerra/cicolors.C
b/cinelerra-5.1/cinelerra/cicolors.C
index 8b99fb5c7f8962af9024174f592aa9b7950334d0..2dba6f87eb127812aed34164f88c1a8c021d3494 100644
(file)
--- 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;