Fixed ("fixed") Android rendering, #33.

This commit is contained in:
NathanSweet 2013-09-30 00:54:09 +02:00
parent 2dc486b2d5
commit e4358cf904
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
CCTexture2D* texture = [[CCTextureCache sharedTextureCache] addImage:@(path)];
CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:4];
CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:128];
self->rendererObject = textureAtlas;
CGSize size = texture.contentSizeInPixels;
self->width = size.width;

View File

@ -38,7 +38,7 @@ USING_NS_CC;
void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
CCTexture2D* texture = CCTextureCache::sharedTextureCache()->addImage(path);
CCTextureAtlas* textureAtlas = CCTextureAtlas::createWithTexture(texture, 4);
CCTextureAtlas* textureAtlas = CCTextureAtlas::createWithTexture(texture, 128);
textureAtlas->retain();
self->rendererObject = textureAtlas;
self->width = texture->getPixelsWide();