Any ideas why the “_3” image not being selected for scaling here when I switch the simulator to iPad Retina. Note that:
* when I run on iPhone mode I get the correct image (the version with no extension)
* when I run on iPhone Retina I get the correct image (the _2 version)
* when I run on iPad Retine I get the base image, and not the _3 version as I would have expected
* I the three images in the same directory
-rw-r--r--@ 1 rfr staff 294853 20 Jun 17:40 darkRoom.png
-rw-r--r--@ 1 rfr staff 1177687 22 Jun 14:49 darkRoom\_2.png
-rw-r--r--@ 1 rfr staff 4223822 21 Jun 17:22 darkRoom\_3.png
Main.lua
-- Display Setup
display.setStatusBar( display.HiddenStatusBar )
print("scaling factors:", 1/display.contentScaleX, 1/display.contentScaleY)
local dummyImage = display.newImageRect("darkRoom.png", 2048, 1408)
dummyImage:setReferencePoint(display.TopLeftReferencePoint)
dummyImage.x, dummyImage.y = 0,0
Console Output (when run for iPad Retina)
scaling factors: 1 1
config.lua
application =
{
content =
{
width = 1408,
height = 2048,
scale = "letterbox",
xAlign = "center",
yAlign = "center",
imageSuffix =
{
[""] = 0.2,
["\_2"] = 0.4,
["\_3"] = 0.9
}
}
}
build.settings
[code]
settings = {
orientation = {
default = “landscape”,
supported =
{
“landscape”
},
},
}
[/code] [import]uid: 140210 topic_id: 27912 reply_id: 327912[/import]
It’s basically the same issue that I dealt with last week. In the latest Corona build (or several daily builds back, I’m not sure), if the scale factor is exactly 1, then Corona will “default” to the non-suffixed version.