diff --git a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp index a086e475b5..311f51748b 100644 --- a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp +++ b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp @@ -225,7 +225,7 @@ bool Scale9Sprite::updateWithBatchNode(SpriteBatchNode* batchnode, Rect rect, bo if (!rotated) { // log("!rotated"); - AffineTransform t = AffineTransformMakeIdentity(); + AffineTransform t = AffineTransform::IDENTITY; t = AffineTransformTranslate(t, rect.origin.x, rect.origin.y); centerbounds = RectApplyAffineTransform(centerbounds, t); @@ -288,7 +288,7 @@ bool Scale9Sprite::updateWithBatchNode(SpriteBatchNode* batchnode, Rect rect, bo // in the spritesheet // log("rotated"); - AffineTransform t = AffineTransformMakeIdentity(); + AffineTransform t = AffineTransform::IDENTITY; Rect rotatedcenterbounds = centerbounds; Rect rotatedrightbottombounds = rightbottombounds; diff --git a/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp b/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp index 777b855300..292af7cac7 100644 --- a/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp +++ b/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp @@ -419,7 +419,7 @@ void HoleDemo::setup() _outerClipper = ClippingNode::create(); _outerClipper->retain(); - AffineTransform tranform = AffineTransformMakeIdentity(); + AffineTransform tranform = AffineTransform::IDENTITY; tranform = AffineTransformScale(tranform, target->getScale(), target->getScale()); _outerClipper->setContentSize( SizeApplyAffineTransform(target->getContentSize(), tranform));