Skip to content

win32: Set the resize flag to match the SetWindowPos() flags - #16516

Merged
Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:win32_sizemove
Oct 13, 2026
Merged

Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:win32_sizemove

Conversation

@Kontrabant

Copy link
Copy Markdown
Contributor

Incorrectly setting this when only changing the window position can early-out of the WM_DPICHANGED handler, and prevent the window size from being properly adjusted when moved between displays with a different scale factor.

Fixes #16510

  • I confirm that I am the author of this code and release it to the SDL project under the zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

Incorrectly setting this when only changing the window position can early-out of the WM_DPICHANGED handler, and prevent the window size from being properly adjusted when moved between displays with a different scale factor.
@Kontrabant
Kontrabant merged commit 341496b into libsdl-org:main Oct 13, 2026
2 checks passed
@Kontrabant
Kontrabant deleted the win32_sizemove branch October 13, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Window slightly resized on high dpi scaled display

1 participant