Cocos2DXNA / cocos2d-xna

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

Fix for #361 from @gena-m. #362

Closed totallyeviljake closed 10 years ago

totallyeviljake commented 10 years ago

Redo the handling of the texture frame instead of using the raw texture content size. Also using the InitWithTexture instead of overwriting the sprite texture. Tested on GL and XNA. Some DX cards need the CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL compile option to make the control switch and TileMap code work properly. That's for another PR.