More double promote fixes

This commit is contained in:
Ingo Weyrich
2020-02-10 20:06:43 +01:00
parent f0b5ca02e7
commit b4c0bb3acb
8 changed files with 65 additions and 107 deletions

View File

@@ -278,7 +278,7 @@ Retinex::Retinex () : FoldableToolPanel (this, "retinex", M ("TP_RETINEX_LABEL")
for (int i = 0; i < 7; i++) {
float R, G, B;
float x = float (i) * (1.0f / 6.0);
float x = i / 6.0;
Color::hsv2rgb01 (x, 0.5f, 0.5f, R, G, B);
milestones.push_back ( GradientMilestone (double (x), double (R), double (G), double (B)) );
}