Hi. Let me suggest that you use ‘adaptive’ scaling.
However, be aware that no matter what you do, the simulator will never truly reflect the what a desktop build will look like.
Note: If anyone disagrees and has a concrete example, please show me because this is something I struggle with too and I make a lot of tools as desktop apps, so I would love to have a 1-to-1 setup that works.
If your simulator is scaling, you will also see non-matching resolutions.
i.e. If you select a display resolution higher than your screen size for the simulator (don’t forget you have to add the borders of the simulator too), OR as Rob dully noted, if you’ve scaled your view, you will see something different that normal scaling.
Just for giggles, please try swapping these values in build.settings:
defaultViewWidth = 2048, -- make this 1400 defaultViewHeight = 1400, -- make this 2048
This probably isn’t true now, but … these used to be swapped or rather I think the screen was treated as if those were for portrait, so landscape (which is 99% of monitor orientations) would need the values swapped.
I’m not sure now if you’ve tried to use my modified sample project or not. Just use it directly if you haven’t. Then, modify it as shown below if it works in 800x600 mode.
Did you build and run the project code I supplied (your modified code)?
If yes, did it work?
Then, did you modify the 800x600 values in build.settings and config.lua to replace 800 with 2048 and 600 with 1400?
When you built and ran that, did it work?
I’m simply having trouble with the idea that 800x600 works, but changing that to 2048x1400 doesn’t.
Be sure you have these things correct:
build.settings
Must have an orientation section set to landscapeRight (see below)
Yes, this is important. Otherwise, the simulator won’t know how to orient. Just try my modified sample instead of arguing.
Must have window section with defaultView Width/Height as show below
Keep in mind, config.lua is not a measure of pixels. It’s a measure of content points that represent your virtual screen. You could do a width of 10 x 15 if you wanted and it would still fill the screen.
In build.settings you set the default window size. The docs are not clear, but this is probably a pixel setting, though it suggests it should be your config.lua or larger.
Now I don’t know if you are hitting a retina display bug. I don’t have a Mac with a Retina display, but it’s likely that Corona is detecting you have one and doubling the resolution. Now are you building this just for you or do you plan to distribute it to others? Many people don’t have screens that large.