Hello there.
I have found a litle bug or not ,i don’t know :).
When i scale my CCSprite or other CCNode object i use in my code getContentSize() but it returns me not scaled content size is this behavior correct? I think not
Example
//initialize sprite
…
LOGN (“Content size:”,m_pSprite->getContentSize().width);
m_pSprite->setScale(GameScene::scale);
LOGN (“Content size:”,m_pSprite->getContentSize().width);
…
Output is:
cocos2d-x debug info [Content size: 69.000000]
cocos2d-x debug info [Content size: 69.000000]
And when i write ’’( (quotation marks and ( “( ) here it disappeard so SQLInjection is posible :D?
LOGN (”Content size:",m_pSprite->getContentSize().width); <— see here
LOGN ("").width);