TurningWheel / Barony

Barony Open Source Release
http://www.baronygame.com/
Other
487 stars 126 forks source link

Ultrawide resolutions cause horizontal stretching of the UI #656

Closed xubble closed 1 year ago

xubble commented 2 years ago

This issue is present in v3.8.0 in the closed beta branch on Steam.

It seems the new graphical UI stretches to fit the screen horizontally. This results in a stretched appearance for the UI when the game is set to a resolution that is not the standard 16:9 widescreen aspect ratio.

Here are a few example images of the graphical UI when the resolution is set to 5120x1440 (a 32:9 aspect ratio).

image

image

image

SheridanR commented 2 years ago

If you change the resolution through the settings menu on the develop branch, it will change the aspect ratio of the GUI. Maximizing or resizing the window does not do this however. The issue is that changing the aspect ratio requires resetting the UI state, so doing it every time the window size changes with the mouse is... disorienting. Maybe there should be a time delay before that happens so it still always corrects itself.

SheridanR commented 2 years ago

BTW in case you don't know, field-of-view is measured vertically, so very wide-screen monitors give you expanded horizontal FOV even if you don't change the setting. Just saying because I see you've maxed out the slider and the game looks pretty fish-bowly to me x)

xubble commented 2 years ago

Yep yep, was just checking the FOV slider to see if it behaved differently in the beta.

I'll take a peek at the develop branch. Thanks for the speedy reply. 👍

xubble commented 1 year ago

I am reopening this ticket as the issue appears to be present as of 3.8.6.

image image

I would expect the GUI to at least remain in a 16:9 aspect ratio centered on the screen, but there is still this unnatural horizontal stretching of the GUI to fit the 32:9 screen resolution. Here is a (very quick) mockup and comparison of what I mean.

Current behavior:

image

Expected behavior:

image

The resolution is again set to 5120x1440, but the issue is apparent with any resolution that goes beyond the standard 16:9 aspect ratio.

SheridanR commented 1 year ago

I believe this has been (re-)fixed already in the develop branch, and in fact, macOS users already have the fix - Windows and Linux builds should get it in the next patch. For now, as a workaround, you can use the /resizegui command in-game to change the size of the ui layer manually. I recommend these values: /resizegui 2560 720

xubble commented 1 year ago

I was not aware of that command. But it does appear to resolve the stretched GUI. I appreciate the speedy response. Thank you!