Another Director tweak needed for Android

In Director 1.2, you often use "display.contentWidth" and "display.contentHeight" for your transitions. This works fine on iOS devices. But on Android devices when using the zoomEven scaling, the display.contentWidth does not represent the visible width of the screen. You should be using display.visibileContentWidth instead.

What I did to fix this was to define some local constants at the top of the director.lua file:

1
2
local contentWidth = display.viewableContentWidth
local contentHeight = display.viewableContentHeight

Grr...still can't edit posts.

In the first paragraph above, I meant:

"You should be using display.viewableContentWidth instead."

views:1271 update:2011/10/13 9:25:17
corona forums © 2003-2011