Having toruble with resolution on retina display

I’ve created an app that works fine in the simulator. But it’s only one quarter size on a retina device. Obviously a scale resolution problem.

All of the elements on the screen are drawn with newRect() or newText().

I’ve created a config.lua file which defines width and height to 320 and 480 but it doesn’t seem to change anything. My guess is that this has something to do with using shapes rather than image files? [import]uid: 98652 topic_id: 18587 reply_id: 318587[/import]

Try setting the Referece Point of your display objects using the API:

[lua]object:setReferencePoint(display.TopLeftReferencePoint)[/lua] under the line where you setup your display objects as it will change the Reference Point of your object to the same 0,0 coordinates as the display and so probably show your elements at total display instead a quarter of it.

PS: Are your elemments (display.objects) inserted into a group? If so you would change the Group Reference Point instead all the objects`s referece points, got it? :slight_smile:

PS2: Check out here about the Reference Point subject --> http://developer.anscamobile.com/reference/index/objectsetreferencepoint

If it does not solve your problem, post here because surely any of the members or Staff will get it working with you.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 18587 reply_id: 71385[/import]

In your config.lua you mentioned you set the “height” and “width”.

Make sure you set “scale” also.

The values are “none”, “letterbox”, “zoomStretch”, or “zoomEven”. [import]uid: 94868 topic_id: 18587 reply_id: 71421[/import]

Screaming Leaf is spot on here, it sounds like not having scale set could be the issue.

(Any value besides “none” should fix the issue.)

Peach :slight_smile: [import]uid: 52491 topic_id: 18587 reply_id: 71536[/import]