More double promote fixes

This commit is contained in:
Ingo Weyrich
2020-02-10 16:22:42 +01:00
parent 2c831a11a7
commit f0b5ca02e7
17 changed files with 155 additions and 175 deletions

View File

@@ -164,7 +164,7 @@ void Gradient::updateGeometry(const int centerX, const int centerY, const double
const auto decay = feather * rtengine::norm2<double> (imW, imH) / 200.0;
rtengine::Coord origin (imW / 2 + centerX * imW / 200, imH / 2 + centerY * imH / 200);
const auto updateLine = [&](Geometry* geometry, const float radius, const float begin, const float end)
const auto updateLine = [&](Geometry* geometry, const double radius, const double begin, const double end)
{
const auto line = static_cast<Line*>(geometry);
line->begin = PolarCoord(radius, -degree + begin);
@@ -173,7 +173,7 @@ void Gradient::updateGeometry(const int centerX, const int centerY, const double
line->end += origin;
};
const auto updateLineWithDecay = [&](Geometry* geometry, const float radius, const float offSetAngle)
const auto updateLineWithDecay = [&](Geometry* geometry, const double radius, const double offSetAngle)
{
const auto line = static_cast<Line*>(geometry);
line->begin = PolarCoord (radius, -degree + 180.) + PolarCoord (decay, -degree + offSetAngle);