Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

CCControlSwitch - init from a sprite sheet sets the bounds to the entire sprite sheet #361

Closed totallyeviljake closed 10 years ago

totallyeviljake commented 10 years ago

CCControlSwitch, look at the initWithMaskSprite code and you will see that it sets the control switch content size to be the size of the texture. This is not correct. It should be using the maskSprite.ContentSize instead.