EJ Mablekos wrote:
I understand the purpose of a ccscale9sprite in some cases. But it is not required in all situations. If it would accept a sprite, I could use a scale9 when needed and a regular sprite when I am not going to scale it.
A little late but I ran in to this also, and the solution for me was to set the inset rect accordingly so that everything is in the “center” section that gets scaled:
CCScale9Sprite* newSprite = CCScale9Sprite::create("filename.png");
CCSize oSize = newSprite->getOriginalSize();
newSprite->setCapInsets(CCRect(0, 0, oSize.width, oSize.height));