how to disable retina image scaling in cocos2d-x framework

I am trying to disable retina display in cocos2d-x 2.2.2, here is what I’ve found:

http://www.cocos2d-x.org/forums/6/topics/14240

but looks like, this function has been removed.

just wondering, how to achieve this.

It’s easy to achieve that by current Resolution Policy.
For example, you have resources of 480x320, design resolution of 480x320 and window size of 960x640.
The following methods will simulate disable retina display .

cc.EGLView.getInstance().setDesignResolutionSize(480, 320, cc.RESOLUTION_POLICY.SHOW_ALL);