diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-08-25 01:50:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-08-25 01:50:53 +0300 |
commit | 1080a7d5e132c162c80f3fc461885b483f8ac722 (patch) | |
tree | 5e3fc2172af6f870bb31b4a30f8a840467505296 /source/blender/compositor/operations | |
parent | 7d516f11f7fb5bf8374a9675c25516694fe2eda2 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp | 2 | ||||
-rw-r--r-- | source/blender/compositor/operations/COM_MixOperation.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp b/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp index 732e731fadf..14881ebb265 100644 --- a/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp @@ -60,7 +60,7 @@ void DirectionalBlurOperation::initExecution() this->m_center_y_pix = center_y * height; this->m_tx = itsc * D * cosf(a); - this->m_ty = -itsc *D *sinf(a); + this->m_ty = -itsc * D * sinf(a); this->m_sc = itsc * zoom; this->m_rot = itsc * spin; diff --git a/source/blender/compositor/operations/COM_MixOperation.cpp b/source/blender/compositor/operations/COM_MixOperation.cpp index 04025329ad4..d379839a457 100644 --- a/source/blender/compositor/operations/COM_MixOperation.cpp +++ b/source/blender/compositor/operations/COM_MixOperation.cpp @@ -322,9 +322,9 @@ void MixDifferenceOperation::executePixelSampled(float output[4], float x, float value *= inputColor2[3]; } float valuem = 1.0f - value; - output[0] = valuem * inputColor1[0] + value *fabsf(inputColor1[0] - inputColor2[0]); - output[1] = valuem * inputColor1[1] + value *fabsf(inputColor1[1] - inputColor2[1]); - output[2] = valuem * inputColor1[2] + value *fabsf(inputColor1[2] - inputColor2[2]); + output[0] = valuem * inputColor1[0] + value * fabsf(inputColor1[0] - inputColor2[0]); + output[1] = valuem * inputColor1[1] + value * fabsf(inputColor1[1] - inputColor2[1]); + output[2] = valuem * inputColor1[2] + value * fabsf(inputColor1[2] - inputColor2[2]); output[3] = inputColor1[3]; clampIfNeeded(output); |