Search code examples
ipadcocos2d-iphoneretina-displayipad-3

iPad retina stretches non-retina images in Cocos2d


I have a iPad app built with SDK 5.1 (Xcode 4.4). The app is a non-retina app. On iPad 1 and 2 the images are scaled properly. On the new iPad (3rd generation) all the images get scaled up. This behaviour is kind of expected, but undesired in my situation. How do I prevent the images from being scaled up?


Solution

  • Since you are building for both Non-Retina and Retina devices you should include both versions of all images. The Retina images should be double in size of the screen resolution and should have the @2x.png (or jpg) suffix. Example: [email protected]