diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-26 15:17:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-26 15:17:01 +0400 |
commit | 1c29fd77d31318fae9d72c5560bfdf0aa742cc3d (patch) | |
tree | 14b9a1e2811edd8edfe3db605adc537e19ab8b85 /source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp | |
parent | 97aab5acc4a397c73868b9f960e706153ac73f2e (diff) |
Code Cleanup: style and correct API class ref
Diffstat (limited to 'source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp index 035789e09e6..ad9b761da45 100644 --- a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp +++ b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp @@ -195,17 +195,17 @@ void ScreenLensDistortionOperation::deinitExecution() void ScreenLensDistortionOperation::determineUV(float result[6], float x, float y) const { - float xy[2] = { x, y }; + const float xy[2] = {x, y}; float uv[2]; get_uv(xy, uv); float uv_dot = len_squared_v2(uv); - copy_v2_v2(result+0, xy); - copy_v2_v2(result+2, xy); - copy_v2_v2(result+4, xy); - get_delta(uv_dot, m_k4[0], uv, result+0); - get_delta(uv_dot, m_k4[1], uv, result+2); - get_delta(uv_dot, m_k4[2], uv, result+4); + copy_v2_v2(result + 0, xy); + copy_v2_v2(result + 2, xy); + copy_v2_v2(result + 4, xy); + get_delta(uv_dot, m_k4[0], uv, result + 0); + get_delta(uv_dot, m_k4[1], uv, result + 2); + get_delta(uv_dot, m_k4[2], uv, result + 4); } bool ScreenLensDistortionOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) |