修正 ripple 中心不居中

This commit is contained in:
seven332 committed 2014-09-07 11:32:42 +08:00
1 parent d361eaf63d
commit 4c7c06e8dc
1 file changed
+4 -2
@@ -112,8 +112,10 @@ public class RippleSprite extends Sprite {
mOuterRadius = ((float) Math.sqrt(halfWidth * halfWidth
+ halfHeight * halfHeight));
//mStartingX = mBounds.exactCenterX();
//mStartingY = mBounds.exactCenterY();
if (!mKeepBound) {
mStartingX = mBounds.exactCenterX();
mStartingY = mBounds.exactCenterY();
}
clampStartingPosition();
}