Hi, everyone. I have a question about Retina support in Cocos2d-x.
I’m stuck in HelloWorld example - in HelloWorldAppDelegate.mm i’m declared enableRetinaSupport(true) like this:
pDirector~~>enableRetinaDisplay(true); //enable retina here
So, as i understand, my resolution now MUST be 960x640, BUT in HelloWorldScene.cpp in line:
CGSize size = CCDirector::sharedDirector()->getWinSize();
i’m still get size variable at 480x320.
When i add HelloWorld-hd.png with 960x640 resolution, it not stretch on screen in Retina mode (as SHOULD), but looks like sprite with lower resolution, with black borders.
Simulator.jpg (53.0 KB)