diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2012-05-17 17:25:41 +0400 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2012-05-17 17:25:41 +0400 |
commit | aeb3c0f70eb912aefbf7adb95f53347f97f42fe6 (patch) | |
tree | bce13fcfd0de83858248229b863ca0e198f2a76c /source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp | |
parent | ef3be824a05b81ca0a11a9996a62b0b01c5ca54c (diff) |
Fix for MSVC float conversion
Diffstat (limited to 'source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp index 4a4ac6c6833..87ef015384d 100644 --- a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp +++ b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp @@ -93,7 +93,7 @@ void ScreenLensDistortionOperation::executePixel(float* outputColor, int x, int { // RG const int dx = ln[2] - ln[0], dy = ln[3] - ln[1]; - const float dsf = sqrtf(dx*dx + dy*dy) + 1.f; + const float dsf = sqrtf((float)dx*dx + dy*dy) + 1.f; const int ds = (int)(jit ? ((dsf < 4.f) ? 2.f : sqrtf(dsf)) : dsf); const float sd = 1.f/(float)ds; @@ -111,7 +111,7 @@ void ScreenLensDistortionOperation::executePixel(float* outputColor, int x, int { // GB const int dx = ln[4] - ln[2], dy = ln[5] - ln[3]; - const float dsf = sqrtf(dx*dx + dy*dy) + 1.f; + const float dsf = sqrtf((float)dx*dx + dy*dy) + 1.f; const int ds = (int)(jit ? ((dsf < 4.f) ? 2.f : sqrtf(dsf)) : dsf); const float sd = 1.f/(float)ds; |