-
Notifications
You must be signed in to change notification settings - Fork 86
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
Keyboard resize fix #341
Keyboard resize fix #341
Conversation
184bf19
to
3c84f17
Compare
I can do a follow up if it is wished that the game keeps running like before. That however brings the laggy/stutter move/resize back. (Although not that back and forth with keyboard this fixes!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally am fine with the semantics change, especially given this is how it works on OpenGL. The code changes look reasonable.
Will leave this up for a bit to see if anyone has a comment.
Hm I think I need to change it so it only closes on true. And sry I accidentally tapped "close PR" while typing this on my phone 😑 |
Can you rebase on the latest master? Thankyou. |
Use the function that was already there for the message queue and just run dxgi.run_one_game_iter() in a loop. This should be more in line with how this works in SDL/OpenGL. Fixes bugged (jittery) resize/move with keyboard through the window menu. Although the game pauses when moved/resized or the window menu is open (also like in SDL/OpenGL).
04692e6
to
0238a81
Compare
Done |
* Move run_one_game_iter() out of WM_PAINT Use the function that was already there for the message queue and just run dxgi.run_one_game_iter() in a loop. This should be more in line with how this works in SDL/OpenGL. Fixes bugged (jittery) resize/move with keyboard through the window menu. Although the game pauses when moved/resized or the window menu is open (also like in SDL/OpenGL). * Fixed game never stopped running after last commit * Attempt to gracefully close on logout * Only close if endsession is not canceled
This seems to have caused a discrepancy in DPI awareness and therefore ImGUI does not use the whole window.
This seems to have caused a discrepancy in DPI awareness and therefore ImGUI does not use the whole window.
Use the function that was already there for the message queue and just run dxgi.run_one_game_iter() in a loop. This should be more in line with how this works in SDL/OpenGL.
Fixes bugged (jittery) resize/move with keyboard through the window menu. Although the game pauses when moved/resized or the window menu is open (also like in SDL/OpenGL).
Before:
https://github.com/Kenix3/libultraship/assets/962946/c2e9f37c-31f8-4d32-ad3e-0f595faf40c8
After the changes:
https://github.com/Kenix3/libultraship/assets/962946/d6b3afdd-a53a-4771-a1e5-ea2c098ae5f8