problem with 3.17.2

i am trying to port my project to 3.16 to 3.17.2

i am getting resolution
when i am using cocos2dx 3.16
iPhone 11 max pro 2436.000000 1125.000000
iPhone 12 max pro 2436.000000 1125.000000

but when i am using cocos2dx 3.17.2
iPhone 11 max pro 2688.000000 1242.000000
iPhone 12 max pro 2778.000000 1284.000000

why i am getting different value like these

thanks in advance

You are getting correct resolutions in cocos2dx 3.17.2. This is because cocos2dx 3.16 is using bunch of start screens in png for every iPhone model it knows, and of course, 11&12 max pro is not among them. The more universal technique, recommended by Apple, is use LaunchScreen.storyboard instead of launch images, to activate “native” resolution any (and even not yet invented) iphones. Cocos2dx 3.17.2 and v4. is using LaunchScreen.storyboard.

2 Likes