Hi,
I have a display.newRect defined with width = display.contentWidth and height = display.contentHeight. Now, on some devices this covers the whole screen but on other devices it looks ‘letter box’.
I have several questions regarding this and would like your help.
(i am using corona build 2100; and the ‘ultimate config.lua’ from Rob’s original article; app in landscape mode [no prtrait mode support])
1- since config.lua is the same, why does this happen (display object covering all the screen) on some devices but not others?
2- when i substitute contentWidth with actualContentWidth and contentHeight with actualContentHeight i get inverted values. Examples:
a- HTC ONE X:
-contentWidth: [background=‘yellow’]570[/background]
-contentHeight: 320
-viewableContentWidth: 570
-viewableContentHeight: 320
-actualContentWidth: [background=‘yellow’]320[/background]
-actualContentHeight: 570
b- Samsung Galaxy S Duos S7562
-contentWidth: 512
-contentHeight: 320
-viewableContentWidth: 512
-viewableContentHeight: 320
-actualContentWidth: 320
-actualContentHeight: 533
As you can see in the examples, actualContentWidth and actualContentHeight in landscape mode give inverted values. Why is that?
3- using the ultimate config.lua and an app in landscape mode, how can i declare a display.newRect that is guaranteed to cover the whole screen on all devices?
Many thanks for all your help.
Luay