I look up in the cocos2d-html5 source code and see that enableRetinaDisplay() function of Director class will set a new value to global content scale factor via setContentScaleFactor(). But my curious is that I have followed the approach in scaling all the game content to fit the current screen resolution (via HTML5HelloWorld example) and it uses the same function to make it works that is enableRetinaDisplay().
So if I want to make the game’s compatible with iPhone retina or iPad retina. Do I need to enable it with this function again ? even doing so will override the scale value at the end as I saw in the source code.
Please give me clarification on how things involve between “retina” and “enableRetinaDisplay()”.
Thanks guys !