cocos2d/cocos2d-swift — pull request #991 by thayerandrews (2014-09-23 20:15:46+00:00)
Title: CCEffectContrast - Fix for negative contrast values

Multiply the constant offset value, 0.5, by the input alpha value to make sure it is
also in premultiplied alpha space as the RGB values are. Without this correction,
input RGB values of (0,0,0) can become non-(0,0,0) when the contrast adjustment
is less than 1.0.