Content Scaling

I've just started using Director Class, and I'm having trouble with content scaling now. When I try to test my app in any view other than the iPhone, the background does not scale and all other objects (a title image and three buttons) align to the upper-left. I've tried playing around with the "scale" value in the config.lua file but to no avail. Not sure what I'm doing wrong here.

This is my config.lua code (in case of typos I missed)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
application =
{
    content =
    {
        width = 320,
                height = 480,
                scale = “letterbox”,
 
                imageSuffix =
                {
                        ["@2x"] = 2,
                },
    }
}

Try letterBox with capital B, maybe it's case sensitive.

I played with the code abit, and it seems the problem was caused by me copy-pasting the code. For some reason, the quotation marks didn't copy correctly and it broke the code.

views:1959 update:2012/2/10 9:26:24
corona forums © 2003-2011