Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering is stretched after resizing the window to a different aspect ratio #53

Open
Calinou opened this issue May 28, 2022 · 0 comments
Labels

Comments

@Calinou
Copy link
Contributor

Calinou commented May 28, 2022

OS: Fedora 36
Stunt Rally version: cb9adab

Rendering is stretched after resizing the window to a different aspect ratio. This can be fixed by restarting the game, then using the using the resolution slider to change the resolution. Some HUD elements will also appear at incorrect locations.

The framebuffer is resized to the higher resolution1, but the camera matrix doesn't appear to be set correctly (or one of the horizontal/vertical FOVs is not changed as the window is resized).

This didn't occur on 2.6 to my knowledge. If this is too much work to fix properly, then the window could be made non-resizable so that you can't break it anymore.

Setting resolution to 2560×1440 using the menu option (correct)

2022-05-28_19 54 49

Setting resolution to 2560×1440 by maximizing a 1024×768 window (broken)

2022-05-28_19 56 15

Footnotes

  1. Otherwise, rendering would look all blurry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants