sourcemars / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

CCSprite . setContentSize #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. mySprite.setContentSize(newW,newH);

What is the expected output? What do you see instead?
Sprite is drawn with defined size.

CGRect rect_ in CCSprite is used as sprite size thought it represents texture 
coordinates quad. I looked into cocos2d-iphone they use same logic, but this 
seems to be a bug.

Original issue reported on code.google.com by opengen...@gmail.com on 27 Dec 2010 at 9:50

GoogleCodeExporter commented 8 years ago
This is not the size of the sprite, this value is unmodified size, should not 
be used for defining size.

Original comment by opengen...@gmail.com on 28 Dec 2010 at 6:49