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 Embedded Game startup location on Windows #103021

Merged

Conversation

Hilderin
Copy link
Contributor

@Hilderin Hilderin commented Feb 19, 2025

This PR should fix the startup location of the Embedded Game on Windows.

I was able to reproduce the issue when using multiple monitors when the main monitor was on the right and when the editor was on the left monitor.

The issue was caused by a condition that skipped the offset recalculation when the game was embedded. This error was there since the beginning but was made apparent only since the input queue thread was detached between the editor and the game process, allowing the first game render to display before the editor reposition the game correctly.

Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

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

Seems to be working as expected. Always adding screen origin makes sense, it's a real window in virtual desktop coordinates.

@Repiteo Repiteo merged commit 70eb62f into godotengine:master Feb 19, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Feb 19, 2025

Thanks!

@SilverWolveGames
Copy link

Thank you guys!

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

Successfully merging this pull request may close these issues.

Embedded game tab splash screen out of bounds
4 participants