I am trying to show a background image. The main lua is simple, just 3 lines of code as below.
The background image is displayed correctly (fully occupying the screen) in most of the Simulator devices. But if I change the Simulator device to iPhone 4S or Samsang Galaxy Tab, the image becomes smaller.
Is this a new bug or I miss some configuration?
main.lua
local bgImg = display.newImage("playBackground.jpg", 1425, 900) bgImg.x = display.contentWidth\*0.5 bgImg.y = display.contentHeight\*0.5
My config.lua
local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio \> 1.5 and 800 or math.ceil( 1200 / aspectRatio ), height = aspectRatio \< 1.5 and 1200 or math.ceil( 800 \* aspectRatio ), scale = "letterBox", fps = 60, }, launchPad = false, }