Resizing windowed mode breaks UI

UI & UX
PatrickDahlin [github] · 2 years ago

Issue description

Start game in windowed mode, then resize the window. You'll notice the mouse input position is offset and in some cases parts of the window is outside the framebuffer and itsnt updated.

I am using 120% scaling of UI in this

I may note that this issue can softlock me from pressing certain ui buttons unless I find the right window size where the buttons align somewhat, and as such is a quite important bug to fix imo.

Reproduction steps

Open game and start any save while in windowed mode. Resize window to a different aspect ratio.

Game version and build number

0.6.4d (b343)

Operating system

Windows

Attachments

image
Gif showing the cursor offset: https://imgur.com/a/YHy5TsF

Note how the bottom and right side of the window has "transparent" parts, which are areas outside of the framebuffer for some reason and arent rendered (maybe this mismatching size is what causes the cursor position mismatch?)

Captain Filip Captain Filip · 1 year ago

Is this still present in the current version after we switched to the new UI fully?

PatrickDahlin [github] · 1 year ago

I cannot replicate as my OS changed. I have not experienced this issue on manjaro.
What I could suggest is that the top part of the UI requires quite a wide window, perhaps stacking some of the elements would make them fit better if the window is smaller?

Example:

Image

I've happened upon this a couple times when I run the game in windowed on half the monitor on my ultrawide.
I guess it's possible to scale down the UI but that makes it quite small.

20 Showing 1–3 of 3