Background image not covering full screen

Hi,

I’ve got a background image which is 960x320 (wxh). I want to load the first half width of the image and then scroll it sideways, but when I view it in the iPhone simulator (in landscape orientation) the background image only occupies the top half of the screen. My config code is as follows:
[blockcode]
application =
{
content =
{
width = 320,
height = 480,
scale = “Letterbox”,
fps = 30,
antialias = true,
}
}
[/blockcode]

and my settings code is as follows:

[blockcode]
settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”
},
},
iphone =
{
plist =
{
UIStatusBarHidden=true,
UIPrerenderedIcon = true
},
}
}

[/blockcode]

What am I getting wrong? Thanks. [import]uid: 52069 topic_id: 12631 reply_id: 312631[/import]

How are you inserting the background? [import]uid: 52491 topic_id: 12631 reply_id: 46223[/import]

Hi Peach :slight_smile:

I’m inserting it as follows:
[blockcode]
local background = display.newImage(“background.png”)
[/blockcode]

It almost seems as if the simulator is trying to fit the 960 image width into the 480 screen width? Maybe I’m approaching background scrolling the wrong way altogether. [import]uid: 52069 topic_id: 12631 reply_id: 46230[/import]

that’s because corona is scaling your image to prevent that put true at last

local background = display.newImage(“background.png”,true)
:slight_smile: [import]uid: 12482 topic_id: 12631 reply_id: 46372[/import]

@hgvyas123, thank you! That solved the issue. I had gone back to using a normal width background, but this is what I was looking for.

:slight_smile: [import]uid: 52069 topic_id: 12631 reply_id: 46379[/import]

welcome
(: [import]uid: 12482 topic_id: 12631 reply_id: 46387[/import]