Hi,
I’ve read all the documentation regarding content scaling but I don’t get why I’m getting such strange results with my project: I have an image and a text displayed on the screen, they occupy different portions of the screen and it works fine cause they don’t overlap on each other. That’s true for all devices with the exception of iphone (3gs), when I simulate on it the image is displayed higher on the y axis and cover the text. Why is that ?
- my config.lua:
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 30,
antialias = false,
xalign = “center”,
yalign = “center”,
graphicsCompatibility = 1,
imageSuffix =
{
["@2"] = 2
}
}
}
- this is how I display the image:
head = display.newImage (“head-1.png”)
head.y = display.contentHeight - 340
head.x = display.contentWidth - 280
- and the text:
text = display.newText( “-- some quite long text”, 0, 0, 375, 0, “Capitals”, 22 )
text: setTextColor( 180, 34, 168 )
Am I am making some basic mistake I’m not aware of??
Thanks.