The config.lua file is a file that lives beside your main.lua. It’s used to control the content area of your app (the width and height in Corona content units or points), how the screen is to be scaled , how to handle dynamic image resolution, etc.
A typical config.lua looks like:
application = { content = { width = 320, height = 480, scale = "letterbox", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }
If you want to stay with Graphics 1.0, you will need something like:
application = { content = { width = 320, height = 480, scale = "letterbox", fps = 60, graphicsCompatibility = 1 imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }
This is a separate file name “config.lua”. You cannot put this in your main.lua.
Rob