How to get the original (hardware) resolution?

Hello,

I’m writing an app which should run on all iDevices. I’m using content scaling (letterbox).
The problem now is, that the iPhone4 and the iPod Touch 3rd generation have a much higher DPI (dots per inch) for their screens. Text sizes on the Retina display appear too small to read if I use the same text sizes as for the lower DPI resolutions.

My idea was therefore to increase the text sizes when on a Retina display device. However, I have a hard time finding out if my app is really running on such a device. How to do that?

It would be nice if we can get a hold of the original (hardware) screen resolution or even better the DPI of the display. Unfortunately the values returned from display.getViewableContenWidth are the pixels defined in the config.lua, not the real hardware pixels. [import]uid: 8503 topic_id: 2064 reply_id: 302064[/import]

If you are using Dynamic Scaling (config.lua), there is no way to determine the hardware screen size.

If you are using letterbox scaling, I’m surprised you are seeing different font sizes between iPhone 4 and iPod 3 devices. Our sample apps use letterbox scaling and I don’t notice a different between iPhone 4 and iPhone 3 devices. I’m looking at the DeviceInfo sample app on both devices and the text sizes looks the same.

-Tom [import]uid: 7559 topic_id: 2064 reply_id: 6124[/import]