What is the simplest way to repurpose iPad App for iPhone4 and iPhone?

I’ve created my app @ iPad resolution and now I need to repurpose it for iPhone…

I thought ahead and positioned and sized everything based on percentages of display.contentHeight/ width so when I build for iPhone 4 for instance, all the interface and anims seem to be in the correct position, but the Bg images are all miniscule.

this is my config.lua

[lua]application =
{
content =
{
—[[
width = 768,
height = 1024,
–scale = “zoomEven”,
–]]

scale = “letterbox”,
xAlign = “center”,
yAlign = “center”,
fps = 60,
antialias = true,

},
}[/lua]

When I change this to iPhone width height etc everything is zoomed right up etc on the ipad and interface is off the screen on the iphones… Any ideas for easily repurposing other that reEngineering everything to dynamic display.newImageRect(). Remembering that it seems that only the BG images are the incorrect sizees.

Cheers

Chris Long [import]uid: 9457 topic_id: 5037 reply_id: 305037[/import]

I’m bumping this and would really appreciate an answer. Corona doesn’t seem capable to dynamically scaling iPad apps down to other resolutions.

As the OP noted, my objects seem OK, but my background are all screwed up.

Does anyone have a proven method for down-scaling an iPad app to work on iPhone/iPhone 4?
[import]uid: 13529 topic_id: 5037 reply_id: 27920[/import]

Could you be more specific in describing your background images? What exactly do you mean by “miniscule”?

Presumably these images were fullscreen on iPad and thus 1024x768, correct? Given that you specifically say you aren’t using newImageRect() then you should know there is an autoscaling setting in newImage() that kicks in for graphics over 512x512. You can turn that autoscaling off, but I don’t know if that’s relevant to the incorrect scaling. I would expect the images to look just as big but blurry.

http://developer.anscamobile.com/content/display-objects#Image_Autoscaling

That said, I would highly recommend switching to newImageRect(). [import]uid: 12108 topic_id: 5037 reply_id: 29528[/import]

Should of used newImageRect and you still can as there isn’t much work to implement it. [import]uid: 33866 topic_id: 5037 reply_id: 29560[/import]