I think the “Adjust width to fill screen (extend or crop)” function has a bug or an issue: it only occurs if the “Update resolution during the game” checkbox is enabled.
In these images, you can see the problem: at the beginning of the scene, the image is enlarged to cover the entire screen.
In the first image, everything works correctly because the “Update resolution during the game” checkbox is enabled.
I expect “Adjust width to fill screen (extend or crop)” to expand the scene to fill the window. If I try to further resize the window during the game, I would like the resolution to remain fixed (showing black bars on the sides if necessary) unless “Update resolution during the game” is also selected.
To summarize: “Adjust width to fill screen (extend or crop)” does not work at all without “Update resolution during the game.” I had also opened a topic requesting a new function because, based on the issues I encountered, I thought a different option was needed.
Thanks in advance for your attention!
(I’m using the latest version of GDevelop on Windows 10)
The option is present in the properties, but unfortunately, “Adjust width” alone doesn’t work. It only works if “Update resolution” is enabled (which is only needed for some games, not all).
This is a big problem because if someone enlarges the window during the game, the resolution changes.
However, I repeat, I wonder if there is a reason for this behavior that I don’t understand.
During the game, the resolution can be changed, and in my case, this causes some issues. However, after reflecting on the matter, thanks to your questions, I thought of solving it by adding a command among the events to lock the window size