Skip to content

w32_common: fix handling of WM_SIZING#17600

Draft
kasper93 wants to merge 1 commit intompv-player:masterfrom
kasper93:win32-sizing
Draft

w32_common: fix handling of WM_SIZING#17600
kasper93 wants to merge 1 commit intompv-player:masterfrom
kasper93:win32-sizing

Conversation

@kasper93
Copy link
Member

@kasper93 kasper93 commented Mar 17, 2026

No description provided.

@kasper93 kasper93 force-pushed the win32-sizing branch 3 times, most recently from db8739c to 0989322 Compare March 17, 2026 20:16
Fixes some corner cases when resizing window with keep aspect ratio
enabled. Limit correctly window to working area, also after adjusting
aspect ratio to avoid unexpected resizes and window not staying in
position. Use integer math to have consistent rounding, to avoid window
"drifting".

Fixes: mpv-player#8728
@avih
Copy link
Member

avih commented Mar 17, 2026

Only tested last commit. As far as I can tell it does fix #8728.

Very nice!

@kasper93 kasper93 marked this pull request as draft March 17, 2026 22:54
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.

2 participants