Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17083

Cocos 3.13 strange behavior setDesignResolutionSize()

$
0
0

@dirtyshadows wrote:

Hello,
just start New project with 3.13, before i used 3.10 in AppDelegate

if(!glview) {
glview = GLViewImpl::createWithRect("Example", Rect(0, 0, 960, 640));
director->setOpenGLView(glview);

}

director->getOpenGLView()->setDesignResolutionSize(960, 640, ResolutionPolicy::SHOW_ALL);

and work fine on all devices.

Now in 3.13 i have this result on iphone 4s with ios 7.

change ResolutionPolicy to NO_BORDER or EXACT_FIT not solve the problem, as if my screen is 640x640. If i check with getVisibleSize() rosolution is 960x640.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>