Simple code:
CCSprite* pSprite = CCSprite::create("HelloWorld.png");
pSprite->setPosition( ccp(size.width/2, size.height/2) );
CCLog("BEFORE contentSize: (%f, %f)", pSprite->getContentSize().width, pSprite->getContentSize().height);
pSprite->setScale(0.5f);
CCLog("AFTER contentSize: (%f, %f)", pSprite->getContentSize().width, pSprite->getContentSize().height);
And here’s the log result:
BEFORE contentSize: (480.000000, 320.000000)
AFTER contentSize: (480.000000, 320.000000)
It seems that the content size of a CCSprite remains the same even after change its scale. So whether it’s a bug or not?