This code is inside AppDelegate.h inside the method applicationDidFinishLaunching
I say it not works because the background image that has resolution 480x320 still fill the entire screen of my Ipod touch 4g(that has a retina display, 960x640)
the ‘CCDirector::sharedDirector()->getWinSizeInPixels();’ will return 480x320 independent if the ‘enableRetinaDisplay’ is true or false.
the ‘CCDirector::sharedDirector()->getWinSizeInPixelsInPixels();’ will return 960x640 if the enableRetinaDisplay is true
the ‘CCDirector::sharedDirector()->getWinSizeInPixelsInPixels();’ will return 480x320 if the enableRetinaDisplay is false
This is valid for an Ipod Touch 4g(that has a retina display).
I will use the ‘CCDirector::sharedDirector()->getWinSizeInPixelsInPixels();’ within enableRetinaDisplay(true) and manual scale the images and coordinates in my next game to see if I can make a god project