Proper screen resoloution

Hello can someone explain me think kind of topic?

If I set:

designResolutionSize.width = 960;
designResolutionSize.height = 640;
    glview->setDesignResolutionSize(designResolutionSize.width * 2, designResolutionSize.height * 2, ResolutionPolicy::SHOW_ALL);

with Show_All policy then point (0,0) on the devise with(1920x1080 resolution) is the same as on windows application but there is a border on the right side on the device If I set No_Border policy then this (0,0) point on the device is somewhere else further on the left and down compare to windows application. Would you tell me how to set resolution which will be with no border and this point (0,0) will be at the same place as in the windows application ?

P.S I was reading manual but did not get much of it, sorry. I would like you to answer me

Thx in advance

Hello @piess105,

Try this:-
CCEGLView::sharedOpenGLView()->setDesignResolutionSize(640.0f,960.0f, kResolutionExactFit);

it will definitely work for all devices i tried my own.and point definitely will be at (0,0) on left.

1 Like

awesome god bless you xD

1 Like

thanks for your appreciation @piess105 :smile: and dont forget to like and bookmark the answer so that it can help others thanks