Perhaps I’m being dense but I can’t figure this out. I’m using the modern ultimate config.lua found here. It works great except I’m not sure how to make a background image fill up the entire screen while keeping the aspect ratio. I understand that some parts of the image will have to bleed off of the edges depending on the device, which is fine.
If I use
local bgImage = display.newImageRect("filename.png", display.actualContentWidth, display.actualContentHeight)
then it takes up the entire screen, but the image will be squished or stretched based on the aspect ratio of the device. What am I missing here?