I’ve noticed that a version of the code below works in the Windows sim but not in the Mac sim or device with GFX 2.0. The code is stripped down to the basics, but should remove/re-load the image so it’s always facing up.
[lua]
function onOrientationChange( event )
local currentOrientation = event.type
if object then
display.remove(object)
object = display.newImage(“object.png”,display.contentCenterX,display.contentCenterY)
end
end
Runtime:addEventListener( “orientation”,onOrientationChange )
[/lua]
Build settings looks like this…
[lua]
orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”,“portrait”, “portraitUpsideDown”,
},
[/lua]
Am I missing something or is this a bug?