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: Only center the window, when it is smaller than the screen. #8581

Merged
merged 1 commit into from Jan 16, 2021

Conversation

frosch123
Copy link
Member

Motivation / Problem

Subtracting unsigned from unsigned results in big unsigned. So, unless the window manager prevents it, the window is places off screen.
Probably only happens on windows.

Description

Only center the window, when it is smaller than the screen.

Limitations

N/A

Checklist for review

N/A

Copy link
Member

@TrueBrain TrueBrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w00p, now my screen is no longer in far-far-far-away-land :D

@frosch123 frosch123 merged commit 540fdfb into OpenTTD:master Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants