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

Provide Config option to have Window start in Center Screen #20

Open
ThiconZ opened this issue Nov 28, 2021 · 1 comment
Open

Provide Config option to have Window start in Center Screen #20

ThiconZ opened this issue Nov 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ThiconZ
Copy link
Member

ThiconZ commented Nov 28, 2021

Currently the Window start location is defined in the first 2 fields of the Configuration.NormalWindowbounds Rect (50, 50) which is then used for the Window creation in Window.Backend at https://github.com/themeldingwars/ImTool/blob/master/ImTool/Window.Backend.cs#L81

It would be useful to add a new setting in Configuration to enable always starting in Center Screen. Sdl2Native.SDL_WINDOWPOS_CENTERED can then be passed into the new Sdl2Window call in place of config.NormalWindowBounds. X/Y. This would avoid the user having to always calculate the center point and allow SDL to handle the work for them.

@ThiconZ ThiconZ added the enhancement New feature or request label Nov 28, 2021
@freakbyte
Copy link
Member

Default behavior is to center the window on first launch now: e1e9675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants