Merge "Fixed inverse constant" into sc-dev
This commit is contained in:
@@ -186,8 +186,8 @@ sk_sp<SkImageFilter> StretchEffect::getImageFilter(const sk_sp<SkImage>& snapsho
|
|||||||
float normOverScrollDistY = mStretchDirection.y();
|
float normOverScrollDistY = mStretchDirection.y();
|
||||||
float distanceStretchedX = CONTENT_DISTANCE_STRETCHED / (1 + abs(normOverScrollDistX));
|
float distanceStretchedX = CONTENT_DISTANCE_STRETCHED / (1 + abs(normOverScrollDistX));
|
||||||
float distanceStretchedY = CONTENT_DISTANCE_STRETCHED / (1 + abs(normOverScrollDistY));
|
float distanceStretchedY = CONTENT_DISTANCE_STRETCHED / (1 + abs(normOverScrollDistY));
|
||||||
float inverseDistanceStretchedX = 1.f / distanceStretchedX;
|
float inverseDistanceStretchedX = 1.f / CONTENT_DISTANCE_STRETCHED;
|
||||||
float inverseDistanceStretchedY = 1.f / distanceStretchedY;
|
float inverseDistanceStretchedY = 1.f / CONTENT_DISTANCE_STRETCHED;
|
||||||
float diffX = distanceStretchedX - CONTENT_DISTANCE_STRETCHED;
|
float diffX = distanceStretchedX - CONTENT_DISTANCE_STRETCHED;
|
||||||
float diffY = distanceStretchedY - CONTENT_DISTANCE_STRETCHED;
|
float diffY = distanceStretchedY - CONTENT_DISTANCE_STRETCHED;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user