I am running the simulator on a windows machine, and have my width set to 320 and height set to 480 in my config file (my app is ran in landscape mode by default). When I do the following code, on android phones, the image does not fill the screen. It fits perfectly height wise but width wise there are black bars on either side, about 20px each. On the iphones, its the opposite, the height is fine again but the width goes beyond the edges of the phone? Any idea why this is happening.
[lua] local img = display.newImageRect(“picture.jpg”, display.contentWidth, display.contentHeight)
img.x = display.contentWidth/2
img.y = display.contentHeight/2[/lua]
Config file:
[lua]application = {
content = {
width = 320,
height = 480,
scale = “letterBox”,
fps = 30,
antialias = true,
–[[
imageSuffix = {
["@2x"] = 2,
}
–]]
}
}[/lua] [import]uid: 152084 topic_id: 27376 reply_id: 327376[/import]