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

Fix some GUI scaling #7539

Merged
merged 4 commits into from Apr 24, 2019
Merged

Fix some GUI scaling #7539

merged 4 commits into from Apr 24, 2019

Conversation

nielsmh
Copy link
Contributor

@nielsmh nielsmh commented Apr 23, 2019

Various GUI elements were not being scaled appropriately with UI scale set to 2x and 4x. Especially newspapers and query boxes were too narrow.

This also scales up the news ticker scroll speed by UI scale, as it otherwise goes by too slow to clear the screen.

Zooming the title game by GUI scale should also avoid most problems like the following, 1.9 title game in 3840 pixel wide showing far more than planned for:
image

@nielsmh
Copy link
Contributor Author

@nielsmh nielsmh commented Apr 23, 2019

I'm not proud of how I did the title game zoom by UI scale, it's very much a hack. It also does not update the zoom when changing UI scale in Options.

@nielsmh
Copy link
Contributor Author

@nielsmh nielsmh commented Apr 23, 2019

Never mind the above comment, I found a better way to handle title game zoom.

@nielsmh
Copy link
Contributor Author

@nielsmh nielsmh commented Apr 23, 2019

Normal UI scale (with these patches applied, but looks the same without):
image

2x UI scale, without these fixes (taken with 1.9.1 and different config, hence different fonts):
image

2x UI scale, with fixes:
image

@nielsmh nielsmh merged commit 37daf43 into OpenTTD:master Apr 24, 2019
8 checks passed
@nielsmh
Copy link
Contributor Author

@nielsmh nielsmh commented Apr 24, 2019

If a 1.9.2 happens I think this should be backported.

@nielsmh nielsmh added the backport requested label Apr 24, 2019
@LordAro LordAro added backported and removed backport requested labels May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants