This is still a problem.
You can reproduce it as follows:
-
Open Corona Simulator, choose File - > New Project, set the template to Blank, set screen size to “Phone Preset” with width and height of 320 and 480 respectively, set Default Orientation to Sideways. These are the defaults I see in build 2076.
-
Open the project in an editor. Go to main.lua. Add this line:
print(display.actualContentWidth, display.actualContentHeight)
-
Relaunch the app in the simulator. The terminal prints “320 480”.
-
Go into config.lua and change scale from “letterBox” to “zoomEven”.
-
Relaunch the app in the simulator. The terminal prints “480 320”.
You needn’t add any display objects. I have found in the past that display objects have no effect on this bug.
EDIT: I’ve filed a bug report. Hopefully this can be fixed quickly. 3rd Party libraries cannot always anticipate whether a developer is going to choose one content scale or the other.
EDIT2: For those who need an immediate solution, you can calculate the correct values for actualContentWidth and actualContentHeight with (display.pixelWidth * display.contentScaleX) and (display.pixelHeight * display.contentScaleY) respectively.