Obviously, Corona already does this, to implement content scaling, but it’s not transparent to the developer. I need to know the screen size of the device and I can’t find any method currently to do it. This is a huge oversight!
display.contentWidth gives you the value in the config.lua file which is fine for working with a single coordinate system, but there should also be an option to get the real screen size. Particularly since Corona doesn’t support automatic content scaling.
A display.deviceWidth API would fix all those problems, unless I’m missing something on the documentation that lets you do this already. [import]uid: 10835 topic_id: 4205 reply_id: 304205[/import]