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

Set window title after creation #4870

Merged
merged 1 commit into from
Nov 8, 2021
Merged

Set window title after creation #4870

merged 1 commit into from
Nov 8, 2021

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented Nov 8, 2021

Built SDL with debug, and got this warning when opening visual-tests:

image

The title does get set as expected, SDL probably has a good reason to complain.

@peppy
Copy link
Sponsor Member

peppy commented Nov 8, 2021

I also got this in the past. I believe we set it before creating the window to ensure it is correct at the point of window creation, but that seems like the wrong way to go about it.

@Susko3
Copy link
Member Author

Susko3 commented Nov 8, 2021

osu! sets the title much later anyway, in

bootstrapSceneGraph(game);

which calls

https://github.com/ppy/osu/blob/6944151486e677bfd11f2390163aca9161defbbf/osu.Desktop/OsuGameDesktop.cs#L148

@peppy peppy enabled auto-merge November 8, 2021 13:48
@peppy peppy merged commit d924d31 into ppy:master Nov 8, 2021
@Susko3 Susko3 deleted the window-title branch February 10, 2022 20:08
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.

None yet

3 participants