Scaling dont do what I want

Hey folks!

I have some veritable probems with the concept of scaling.

I

I am using a standard config.lua made by Lua Glider as you can see below.

 content = { width = 800, height = 1280, scale = "letterBox", fps = 30, },

I am using among others a Samsung Galaxy Tab 10.1 (1280x800, 149ppi) to develop.

So, here the problems begins. :frowning:

When I comment the scale variable in config.lua to use it with my Galaxy tab black bars appears and I dont know why because all my graphics I am using got exact all the measurements needed (800x1280, 149dpi).

On the other and when I comment the scaling variable to use config.lua on other (smaller) devices like an Android Sony I cant see anything in the correct way…

I think I didn’t understand the Corona scaling concept although I thought I did. :wink:

Thanks in advance!

Device physical size in pixels and area you work is different. For corona this 1280 is between this black bars. Check display.screenOriginY property in api docs

I don’t understand why or the concept behind?

What are the difference between “physical device area” and “area I am working with”?

May you give me an example?

Thanks in advance?

http://forums.coronalabs.com/topic/39290-modernizing-the-configlua-rob-miracle-article/

Remember the content area does not have to map 1 to 1 with the screen.  That’s why we are (…) so that people stop thinking in screen pixels.  Think of your app in screen space and let Corona figure it out.

Device physical size in pixels and area you work is different. For corona this 1280 is between this black bars. Check display.screenOriginY property in api docs

I don’t understand why or the concept behind?

What are the difference between “physical device area” and “area I am working with”?

May you give me an example?

Thanks in advance?

http://forums.coronalabs.com/topic/39290-modernizing-the-configlua-rob-miracle-article/

Remember the content area does not have to map 1 to 1 with the screen.  That’s why we are (…) so that people stop thinking in screen pixels.  Think of your app in screen space and let Corona figure it out.