mirror of https://github.com/axmolengine/axmol.git
commit
d2587cc3a9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue