For display.contentWidth, it’s point
, as described in:
-
https://coronalabs.com/blog/2014/10/28/resolution-independence-adaptive-content-scaling-in-corona/
-
https://coronalabs.com/blog/2014/10/23/the-point-of-resolution-independence-ios-and-iphone-6-plus/
-
http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions
But other API doesn’t seem to take point
as the unit, say display.*
on iOS with Retina screen, we must call it with 2x contentWidth to create a fullscreen object
display.newContainer(display.contentWidth \* 2, display.contentHeight \* 2)
Why? What’s the unit of width/height here?
If adaptive scaling is smart enough so we can always display.contentWidth * 2 = screen width
without having to worry about actual PPI, why not handle the * 2 as well?