From 5727d7099b3675c533eeab0b7341c6196fd624e5 Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 11 Jul 2013 13:59:57 +0800 Subject: [PATCH] issue #2395: Scale9Sprite's default anchor point is center now. --- extensions/GUI/CCControlExtension/CCScale9Sprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp index eaca83b345..47ee0da52c 100644 --- a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp +++ b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp @@ -96,8 +96,9 @@ bool Scale9Sprite::initWithBatchNode(SpriteBatchNode* batchnode, Rect rect, bool if(batchnode) { this->updateWithBatchNode(batchnode, rect, rotated, capInsets); - this->setAnchorPoint(ccp(0.5f, 0.5f)); } + + this->setAnchorPoint(ccp(0.5f, 0.5f)); this->_positionsAreDirty = true; return true;