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 macOS Window Resizing Bug #2538
Conversation
Fixes bug where resize events only got triggered upon manual window resizing OR if one called setSize with a height that was too large.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2538 +/- ##
==========================================
+ Coverage 27.14% 27.18% +0.03%
==========================================
Files 228 228
Lines 19644 19639 -5
Branches 4712 4710 -2
==========================================
+ Hits 5333 5338 +5
- Misses 13615 13823 +208
+ Partials 696 478 -218
... and 20 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
I cherry-picked this on top of the changes in #2519, since it has such a nice test application, and it worked correctly. And it might indeed be a candidate for SFML 2.6.1 |
How about we use SFML 3 to test this out? If it work well in |
There is a commit up for the macOS resize bug where we get rid of a previous fix entiry and just resize, but kimci86 stated that he found better behavior with this solution. I'm going to put up this for code review and we can compare it to SFML#2538 and see which we like best
There is a commit up for the macOS resize bug where we get rid of a previous fix entiry and just resize, but kimci86 stated that he found better behavior with this solution. I'm going to put up this for code review and we can compare it to #2538 and see which we like best
Description
Fixes bug where resize events only got triggered upon manual window resizing OR if one called
sf::WindowBase::setSize
with a height that was too large. This was caught during the testing of #2519. The reason we think it's a bug is that other windowing backends like X11 do emit a resize event whensetSize
is called.Brief testing proves that this works but I'm not sure if this has any unintended side effects so I'm not eager to merge until I understand the code better. This bug is present on 2.6.x as well in case we choose to backport this.