--main.lua:
w= display.contentWidth; h= display.contentHeight
local isTall = display.pixelHeight == 1136 and display.pixelWidth == 640
if isTall then
local bkg = display.newImageRect("Background\_4inch.png",568,320)
bkg.x=w\*0.5;bkg.y=h\*0.5
else
local bkg = display.newImageRect("Background.png",480,320)
bkg.x=w\*0.5;bkg.y=h\*0.5
end
---
--config.lua:
application =
{
content =
{
width = 320,
height = 480,
scale = "none",
},
}
Why is it that when I specify the width and height of my “iPhone 5”-only background image, I must set it to exactly half of the image’s actual resolution?
This happens when I do not have scaling, and imageSuffixes/thresholds specified in conflig.lua. I also only have one background image present for the iPhone 5. [import]uid: 73951 topic_id: 31066 reply_id: 331066[/import]