Hey,
The problem I have is that the config.lua section has 540x960, but when i build the app for windows the actual size is 480x740.
This is my config.lua:
–calculate the aspect ratio of the device:
local aspectRatio = display.pixelHeight / display.pixelWidth
local orientation = ‘portrait’ – portrait, landscapeRight, …
print(aspectRatio)
application = {
content = {
width = aspectRatio > 1.5 and 320 or math.ceil( 480 / aspectRatio ),
height = aspectRatio < 1.5 and 480 or math.ceil( 320 * aspectRatio ),
scale = “letterBox”,
fps = 30,
imageSuffix = {
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
orientation = {
default = orientation,
supported = { orientation },
},
window = {
defaultMode = “normal”,
defaultViewWidth = 540,
defaultViewHeight = 960,
suspendWhenMinimized = true,
resizable = false
},
}
Can’t find what I’m doing wrong.