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 splashscreen position #728

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

NotArme
Copy link
Contributor

@NotArme NotArme commented Nov 29, 2024

On multi-monitor setups, the 0.0 point of the desktop can be different from the 0.0 point of a screen, as shown here.
This quirk was causing the initial splash screen to show up on weird places if the user had multiple screens.
This PR fixes the problem by taking the current screen position into account.

Before:
https://github.com/user-attachments/assets/453e40ae-975a-418d-a44c-036243a333f7

After:
https://github.com/user-attachments/assets/e36b184d-0eef-4652-a40b-801c5097d26a

Changes were tested on Windows 11 with a dual monitor setup with 2 1920x1080 monitors, would be nice if people with different setups could test it aswell, but from what i've read in the godot docs, it should work regardless

@NotArme
Copy link
Contributor Author

NotArme commented Nov 29, 2024

Also sorry for the bad quality in the examples, trying two capture two displays at once is a hassle lol

@RodZill4 RodZill4 merged commit dae9238 into RodZill4:master Nov 30, 2024
2 checks passed
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.

2 participants