Commit 5553f06
Thayer J Andrews
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.1 parent b4fd3f5 commit 5553f06
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments