newImageRect behaving differently in simulater vs device.

I’ve created 3 sets of images for each file as follows:

-1024 = 1024 x 768
-800 = 800 x 480
no suffic - 480x320

This is my config file:

application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 60,
imageSuffix =
{
["-800"] = 1.50,
["-1024"] = 1.51,
},
},
}

Basically I want

< 800x480 upscale the 320x480 files
= 800x480 use the 800x480 files
> 800x480 downscale the 1024x768 files

In the simulator this works fine, and the nexus1 selects the correct file, as does ipad and iphone. On my nexus 1 however its always loading the 1024 files.

I’m a big confuses as to which dimension the ratio is supposed to be in… for 800x480 is it

800/480 = 1.667

or

480 / 320 = 1.5

[import]uid: 8872 topic_id: 6072 reply_id: 306072[/import]

I gave up, and tested display.contentScaleY at the start of my app instead. At least this way i’m 100% sure what its loading :slight_smile: [import]uid: 8872 topic_id: 6072 reply_id: 20807[/import]