git-svn-id: http://skia.googlecode.com/svn/trunk@8013 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
45fc9d9b3f
commit
3c1ea3a7e5
@ -451,7 +451,7 @@ static inline int Sat(int r, int g, int b) {
|
||||
}
|
||||
|
||||
static inline void setSaturationComponents(int* Cmin, int* Cmid, int* Cmax, int s) {
|
||||
if(Cmax > Cmin) {
|
||||
if(*Cmax > *Cmin) {
|
||||
*Cmid = (((*Cmid - *Cmin) * s ) / (*Cmax - *Cmin));
|
||||
*Cmax = s;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user