Permalink
Browse files

Revert "Merge pull request #519 from qwiki/master"

This reverts commit a984bcb, reversing
changes made to 99ef54a.
  • Loading branch information...
1 parent d3598a0 commit 29a410150cbccdd66187c7f931e3a49be7083c45 @yamakox yamakox committed Oct 7, 2012
Showing with 2 additions and 12 deletions.
  1. +2 −12 framework/Source/GPUImageToneCurveFilter.m
@@ -250,21 +250,11 @@ - (NSArray *)getPreparedSplineCurve:(NSArray *)points
CGPoint firstSplinePoint = [[splinePoints objectAtIndex:0] CGPointValue];
if (firstSplinePoint.x > 0) {
- for (int i=firstSplinePoint.x; i >= 0; i--) {
- CGPoint newCGPoint = CGPointMake(i, 0);
+ for (int i=0; i <=firstSplinePoint.x; i++) {
+ CGPoint newCGPoint = CGPointMake(0, 0);
[splinePoints insertObject:[NSValue valueWithCGPoint:newCGPoint] atIndex:0];
}
}
-
- // Insert points similarly at the end, if necessary.
- CGPoint lastSplinePoint = [[splinePoints objectAtIndex:([splinePoints count] - 1)] CGPointValue];
-
- if (lastSplinePoint.x < 255) {
- for (int i = lastSplinePoint.x + 1; i <= 255; i++) {
- CGPoint newCGPoint = CGPointMake(i, 255);
- [splinePoints addObject:[NSValue valueWithCGPoint:newCGPoint]];
- }
- }
// Prepare the spline points.

0 comments on commit 29a4101

Please sign in to comment.