Black Bars AGAIN! :(

Sorry Guys, I have not programmed in Corona in those last 4 months, and it seems something has changed in the way Screen Scaling works.

I was using this one “config.lua”, but it seems Black Bars  :angry: has returned when I build. What I should do now?

local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio \> 1.5 and 640 or math.ceil( 960 / aspectRatio ), height = aspectRatio \< 1.5 and 960 or math.ceil( 640 \* aspectRatio ), scale = "letterBox", fps = 60, imageSuffix = { ["@2x"] = 1.3, }, }, }

I got It. It seems Black Bars appears when using “Live Build”.

It would probably be beneficial to read the updated corona documentation on scaling and the config file.

One technicality which may work but is not officially supported is accessing the api from the config file, specifically the display api in your case.

You can easily work around that if you want to be fully compliant, but for that i recommend you carefully read the documentation on the subject. There are some recent additions to the display api that are helpful to know about, as well as using xAlign and yAlign in the config file

Welcome back :stuck_out_tongue_winking_eye:

This is not a thing… don’t use that config.lua and stick to established dimensions that scale nicely - 450x800, 750x1334, etc.

What version of Corona are you using?

@Rob Version 2017.3179 (2017.11.24) 

One of the last ones.

Have you made changes to your config.lua and build.settings since you made your live build?

I got It. It seems Black Bars appears when using “Live Build”.

It would probably be beneficial to read the updated corona documentation on scaling and the config file.

One technicality which may work but is not officially supported is accessing the api from the config file, specifically the display api in your case.

You can easily work around that if you want to be fully compliant, but for that i recommend you carefully read the documentation on the subject. There are some recent additions to the display api that are helpful to know about, as well as using xAlign and yAlign in the config file

Welcome back :stuck_out_tongue_winking_eye:

This is not a thing… don’t use that config.lua and stick to established dimensions that scale nicely - 450x800, 750x1334, etc.

What version of Corona are you using?

@Rob Version 2017.3179 (2017.11.24) 

One of the last ones.

Have you made changes to your config.lua and build.settings since you made your live build?