Remove accidental float math

This commit is contained in:
Peter Osterlund 2020-04-02 19:19:14 +02:00
parent e2bfb57304
commit bd28d178ad

View File

@ -45,7 +45,7 @@ class AHSVColor {
int b = Color.blue(color); int b = Color.blue(color);
double oldHue = hsv[0]; double oldHue = hsv[0];
ARGBToHSV(Color.rgb(r, g, b), hsv); ARGBToHSV(Color.rgb(r, g, b), hsv);
if (hsv[1] <= 0f) if (hsv[1] <= 0.0)
hsv[0] = oldHue; hsv[0] = oldHue;
} }