Skip to content

remove win32 dialog dpi hack #18923

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

Merged
merged 2 commits into from
May 26, 2025
Merged

remove win32 dialog dpi hack #18923

merged 2 commits into from
May 26, 2025

Conversation

emmauss
Copy link
Contributor

@emmauss emmauss commented May 26, 2025

What does the pull request do?

Remove a dpi hack added here, #16143 . This is no longer needed, as toplevels now invalidate themselves when there's any dpi changes. The issue the hack was fixing is properly fixed here #18315 .

What is the current behavior?

When a dialog window is opened, because no dpi updates are sent to it when the dialog parent is set, the dialog toplevel doesn't invalidate its visual, thus it will use the default 1x scale when rendering.

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #18921
Fixes #18903

@emmauss emmauss requested a review from grokys May 26, 2025 07:57
@grokys grokys enabled auto-merge May 26, 2025 08:31
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0056709-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@grokys grokys added this pull request to the merge queue May 26, 2025
Merged via the queue into master with commit 2fce3c5 May 26, 2025
10 checks passed
@grokys grokys deleted the dialog_dpi_fix branch May 26, 2025 12:43
@MrJul MrJul added bug backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels May 31, 2025
MrJul pushed a commit that referenced this pull request Jun 5, 2025
@MrJul MrJul added backported-11.3.x and removed backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants