Dynamic content scaling and screen size detection

Sorry if I missed the boat on this one; I thought I was fairly well informed...

Setting the width and height values in the config.lua file, eg:

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

I don't know if there is an exact command for what you want, but this is close:
http://developer.anscamobile.com/reference/index/displaycontentscalex

oh good spot, yeah those are exactly what he wants

Thanks guys, I'll have to try this later...

M

views:1422 update:2011/10/3 8:06:12
corona forums © 2003-2011