This work stemmed from the issue we have with bleeding of images and display objects when the screen was in stretched mode. We have a couple of thousand users of our business app, all using the app on different platforms - so we have some on HD displays, but we also have some using it on very small lap-tops etc.
The app is designed for IOS and Ipads, but with Corona you can compile into all of these platforms we provide in Windows, Android, MAC and IOS.
We released an update a couple of months ago to eliminate the bleeding issue so that the app only worked in letterbox mode. But then we had a backlash from some users on smaller screens, especially smaller Windows screens and Android devices, where the visible screen was a lot smaller with white space bands down the side. They requested that the screen be stretched again!
So we had say 200 users who wanted it stretched, and the rest were happy with the proportional zooming.
To provide our users what they wanted, we built into the app is a screen to set-up your device. One of the options in this screen is to define how you want the screen to size when expanded. Do you want it to stretch to fill the screen or expand in a controlled way.
Don’t forget the Windows build supports maximisation of the screen so for some user who are on very wide, but narrow screens this feature is useful.
When the user saves the screen I simple write the config.txt file and advise them to restart the app. When they restart the app the screen now behaves in the new format.
As I say, this feature is also useful in Android as some of these devices have odd shape screens…
I got the idea to do this from one of your blog posts !! https://coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/ - but that is no longer there…