Hi,
I’ve been using the ‘ultimate’ config.lua for letterbox scaling, created by Rob Miracle. In Rob’s latest blog post about saving a score (great tutorial btw!) he is not using the ulitmate config.lua, rather one that reads:
--calculate the aspect ratio of the device: local aspectRatio = display.pixelHeight / display.pixelWidth 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 = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }
It should be noted that this is the exact config.lua file that comes with the Corona “Business App sample”
So… is this the best one to use currently?
Furthermore, the video on ‘dynamic image scaling’ on Corona University has one that reads:
content { width = 800 height = 1200 scale = "letterBox" imageSuffix { ["@2x"] = 1.5 }, }
There is no updated information in the pinned ‘Letterbox scaling’ post so thought I would ask here…
Thanks,
Mark