The config file in the article:
https://coronalabs.com/blog/2013/09/10/modernizing-the-config-lua/
is for “Portrait” Mode
--calculate the aspect ratio of the device local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio \> 1.5 and 800 or math.ceil( 1200 / aspectRatio ), height = aspectRatio \< 1.5 and 1200 or math.ceil( 800 \* aspectRatio ), scale = "letterBox", fps = 30, imageSuffix = { ["@2x"] = 1.3, }, }, }
But what would it look like in “Landscape” mode? Like below? Would you need to reverse the greater then and less then signs? Would you need to change anything else ?
local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { --width = aspectRatio \> 1.5 and 800 or math.ceil( 1200 / aspectRatio ),--PORTRAIT MODE --height = aspectRatio \< 1.5 and 1200 or math.ceil( 800 \* aspectRatio ),--PORTRAIT MODE width = aspectRatio \< 1.5 and 1200 or math.ceil( 800 / aspectRatio ),--LANDSCAPE MODE height = aspectRatio \> 1.5 and 800 or math.ceil( 1200 \* aspectRatio ),--LANDSCAPE MODE scale = "letterBox", fps = 60, imageSuffix = { ["@2x"] = 1.3, }, }, }
