setContentScaleFactor


#1

In my ApplicationDidFinishLaunching I have the code below, but the function setContentScaleFactor is not doing anything. I’ve tried with different values but it’s still not working.

// initialize director
var director = cc.Director.getInstance();

cc.EGLView.getInstance().setDesignResolutionSize(768,1024, cc.RESOLUTION_POLICY.NO_BORDER);

director.setContentScaleFactor(2.0);


#2

I just posted an issue to github about that:

getting setContentScaleFactor to do something isn’t hard, but once it’s enabled I saw a bunch of rendering errors.