From 979f6bab9c1aba27b8d018d1481987d841f68ee1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 May 2012 13:44:15 +0000 Subject: style cleanup: braces, compositor --- source/blender/compositor/operations/COM_BrightnessOperation.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/blender/compositor/operations/COM_BrightnessOperation.cpp') diff --git a/source/blender/compositor/operations/COM_BrightnessOperation.cpp b/source/blender/compositor/operations/COM_BrightnessOperation.cpp index bb481f71cc1..a62470e5b1d 100644 --- a/source/blender/compositor/operations/COM_BrightnessOperation.cpp +++ b/source/blender/compositor/operations/COM_BrightnessOperation.cpp @@ -53,13 +53,11 @@ void BrightnessOperation::executePixel(float* color, float x, float y, PixelSamp * (http://visca.com/ffactory/archives/5-99/msg00021.html) * Extracted of OpenCV demhist.c */ - if( contrast > 0 ) - { + if (contrast > 0) { a = 1.0f / a; b = a * (brightness - delta); } - else - { + else { delta *= -1; b = a * (brightness + delta); } -- cgit v1.2.3