@Brent, and everyone, I believe there is a bug actually with this API , because depending on the content scale settings in config.lua ***and the actual content of the scene***, display.actualContentWidth/Height get swapped !
So for letterbox scaling mode, actual content will always return values relative to portrait orientation, but for zoomStretch or zoomeEven, it will return values relative to landscape mode (ie actualContentWidth will be larger than height!).
I still don’t have a minimal test case to be able to file a bug report, because in just plain empty example this API behaves as expected, but with some content inside it suddenly starts returns incorrect values in the pattern I wrote above. Since these API are read-only, I don’t think the problem is in my code, looks like there is something conflicting within the display engine.