diff --git a/cocos2dx/include/CCDeprecated.h b/cocos2dx/include/CCDeprecated.h index 0b2c6600a4..40cb1c49d7 100644 --- a/cocos2dx/include/CCDeprecated.h +++ b/cocos2dx/include/CCDeprecated.h @@ -526,8 +526,10 @@ CC_DEPRECATED_ATTRIBUTE static inline AffineTransform CCAffineTransformInvert(co return AffineTransformInvert(t); } -#define CCAffineTransformIdentity AffineTransformIdentity - +CC_DEPRECATED_ATTRIBUTE static inline AffineTransform CCAffineTransformIdentity() +{ + return AffineTransformMakeIdentity(); +} // CC prefix compatibility CC_DEPRECATED_ATTRIBUTE typedef Object CCObject;