Jump to content
I actually recommend that you do *not* set the pixel width and height on your MainPage. By default, the WP8 app template that Corona provides (as well as Microsoft's) is set up to "fill" the page without any width/height set. If your width and height are set in the XML file, then just delete them to set it up to fill the page.
You should also set up your WMAppManifest.xml to support all resolutions by checking on "wvga", "wxga", and "720p". This way those devices will be allowed to download/purchase your app from the store.
You should also use a "config.lua" file to set up Corona's content scaling like how you're already used to doing it. This way you can take advantage of Corona's built-in scaling features... unless of course you're feeling brave and wish to handle it yourself.
Microsoft documents the supported Windows Phone resolutions here...
Using a Corona content width and height of 320x480 (original iPhone resolution) works fine. If you don't mind re-laying out your app for WP8, then I suggest setting the content width and height to the minimum supported on WP8, which is 480x800.
Does this help?
Or am I misunderstanding what you are trying to do?
Corona's content scaling will scale "up" based on the width and height you set in the "config.lua". You're expected to set it to the minimum that you support, because Corona wasn't designed to scale down.
So, if you set the content width/height to WP8's smallest resolution (say 480x800) with letterboxing, then Corona will automatically scale it up by 1.5x on a 720x1280 screen and 2.25x on a 1080x1920 screen. Those are nice even scales. This means that you can use the scales documented by Microsoft (ie: @1.5, @1.6, and @2.25) for you different resolutions of your image files to be displayed via Corona's display.newImageRect(). But that said, Corona doesn't support the 1080p @2.25 resolution yet because WP8 currently reports that resolution as 720p to the application on the native side and upscales the app to 1080p instead. The upscaling works fine, but it'll show 720p images instead. That is, when you fetch the pixel width/height via Corona, it'll report a 720p resolution on a 1080p device because that's how WP8 provides it in C#. (We haven't decided how to handle this yet, although it doesn't look bad as-is at the moment.)
If you can get the WP8 emulator working on your Windows 8.1 machine, then you get easily test the above in Visual Studio.
Community Forum Software by IP.Board