Create sprite from PNG, wrong content size

Create sprite with PNG, size of 32x32 pixels.

auto tile = Sprite::create(“tile.png”);

Sprite is created but contentSize is (width = 14.999999, height = 14.999999).
Bounding box is (x = -7.49999952, y = -7.49999952) (width = 14.999999, height = 14.999999)

Content size should be 16x16. Now if create line with tiles, stepping with 16pixels it should be seamless. But because content size is not right, in between every tile is small gap.

Also I tried make spritesheet with TexturePacker but sheet have same problem. Sprites contentSize is not right.

Used cocos2d-x 3.9, iPad2, iPhone4, iPhone5s and all have same behaviour.

What is wrong here?

Why should it be 16x16, as your PNG is 32x32. It should be 32x32, no?

Can you upload the PNG?

I think it’s because @juhana set Director::contentScaleFactor=2.
Could you verify that it’s really 2.0? And not slightly bigger.

Yes, found it.

DesignResolutionSize and ResolutionPolicy made content scale to 2.1. So need to play with those settings.