diff --git a/cocos/editor-support/spine/spine-cocos2dx.cpp b/cocos/editor-support/spine/spine-cocos2dx.cpp index 734492a91e..486e244ac0 100644 --- a/cocos/editor-support/spine/spine-cocos2dx.cpp +++ b/cocos/editor-support/spine/spine-cocos2dx.cpp @@ -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) {