UltravioletFramework / ultraviolet

The Ultraviolet Framework is a .NET game development framework written in C#.
https://github.com/UltravioletFramework/ultraviolet/wiki
MIT License
541 stars 46 forks source link

Set position after setting size for centering window #136

Closed vfrz closed 3 years ago

vfrz commented 3 years ago

The window position need to be set after the size when you use SetWindowedClientSizeCentered, if not the window will be centered with the previous size. From my tests I believe the window's size is remembered when you close and reopen the app.

tlgkccampbell commented 3 years ago

Thanks for the contribution!