Merge pull request #7278 from minggo/v3

fix effect of spine
This commit is contained in:
minggo 2014-07-02 09:59:01 +08:00
commit d2587cc3a9
1 changed files with 4 additions and 4 deletions

View File

@ -42,10 +42,10 @@ void _spAtlasPage_createTexture (spAtlasPage* self, const char* path) {
textureAtlas->retain();
self->rendererObject = textureAtlas;
// Using getContentSize to make it supports the strategy of loading resources in cocos2d-x.
// self->width = texture->getPixelsWide();
// self->height = texture->getPixelsHigh();
self->width = texture->getContentSize().width;
self->height = texture->getContentSize().height;
self->width = texture->getPixelsWide();
self->height = texture->getPixelsHigh();
// self->width = texture->getContentSize().width;
// self->height = texture->getContentSize().height;
}
void _spAtlasPage_disposeTexture (spAtlasPage* self) {