I am new to Cocos 2d. So kindly excuse me incase this is very basic stuff.
I am creating CCMenuItemImage from images and it is working fine on non retina devices but in case of retina device(iPhone and iPad retina) images being rendered are double of expected size. Provided, images used for retina devices are twice in resolution as that of non retina devices. For instance if a button has resolution of 100 x 100 for non retina devices, same button for retina devices has a resolution of 200 x 200(because retina devices have double resolution of non retina ones).
I am using the following code to create CCMenuItemImage :-
CCMenuItemImage *startButton = [CCMenuItemImage itemFromNormalImage:startBtnImg selectedImage:startBtnImg target:self selector:@selector(MenuButtonAction:)];
In case of retina devices 'startButtonImg' will have the file name with double resolution compared to non retina devices.
To Summarize When I render CCMenuItemImage on retina devices, images being rendered are of double size(it should not be like this).
Kindly help me in figuring out what am I doing wrong. Thanks in advance!