Hi,
I know there are many article on content scaling and the best way seems to be defining content area for as many devices as possible. However, I’m doing a simple test with the following code in the hope to understand it further, so please help to explain me rather than referring me to other articles.
config.lua
application = { content = { width = 640, height = 1136, scale = "letterBox" } }
main.lua
local img = display.newImage("img.png") img.x = display.contentWidth/2 img.y = display.contentHeight/2
The image resolution is 640x1136 (exactly the same as content area). The display on iPhone5, 6, and 6 plus look ok to me but not on iphone 4.
On iphone 4, I only expect the black bar on the left and right only but it has on the top and bottom too (To me it shouldn’t have the black bar on top and bottom because the content height and image height are the same).
Please help to explain why. Thank you.
Regards,
So Lin