diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/gfx/color_utils.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/gfx/color_utils.cc b/app/gfx/color_utils.cc index cf8cbd2..483e857 100644 --- a/app/gfx/color_utils.cc +++ b/app/gfx/color_utils.cc @@ -9,6 +9,8 @@ #include <windows.h> #endif +#include <algorithm> + #include "base/basictypes.h" #include "base/logging.h" #include "build/build_config.h" @@ -97,7 +99,7 @@ void SkColorToHSL(SkColor c, HSL* hsl) { hsl->h = db - dg; else if (g == vmax) hsl->h = (1.0 / 3.0) + dr - db; - else if (b == vmax) + else // (b == vmax) hsl->h = (2.0 / 3.0) + dg - dr; if (hsl->h < 0.0) |