git-svn-id: http://skia.googlecode.com/svn/trunk@8013 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-03-07 15:31:58 +00:00
parent 45fc9d9b3f
commit 3c1ea3a7e5

View File

@ -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 {