"Adjust width to fill screen" doesn't seem to work

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.

In the second image, the checkbox is not enabled, and unfortunately, “Adjust width to fill screen (extend or crop)” does not take effect.

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)

Where you enable this? (“Update Résolution…” AND “Adjust width…”)
But it’s ambiguous, i am agree with you.

A+
Xierra54

1 Like

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.

This can be tested and in this case, action “Update resolution” can be operated, no?
But it is certainly a bug in the engine.

1 Like

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 :slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face:

I’ll run some tests!