Skip to content

Add DPI awareness (backport #20443) - #20503

Merged
jeromelaban merged 2 commits into
release/stable/6.0from
mergify/bp/release/stable/6.0/pr-20443
May 22, 2025
Merged

jeromelaban merged 2 commits into
release/stable/6.0from
mergify/bp/release/stable/6.0/pr-20443

Conversation

@mergify

@mergify mergify Bot commented May 22, 2025

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes https://github.com/unoplatform/uno.hotdesign/issues/4139

Bugfix

What is the new behavior?

  • Introduced SetProcessDpiAwareness() to address DPI scaling issues when not defined in the process manifest (when started from dotnet run)

PR Checklist

Please check if your PR fulfills the following requirements:


This is an automatic backport of pull request #20443 done by [Mergify](https://mergify.com).

Introduced SetProcessDpiAwareness() to address DPI scaling issues when running from dotnet CLI.

(cherry picked from commit f0c8d93)
Move DPI awareness setup to a dedicated `DpiBootstrap` class using a module initializer for improved clarity and reuse. This ensures the correct DPI context is applied before any window initialization, replacing redundant logic in `Win32Host`.

(cherry picked from commit 1003d8c)
@mergify mergify Bot mentioned this pull request May 22, 2025
2 of 6 tasks
@carldebilly
carldebilly requested a review from ramezgerges May 22, 2025 13:08
@jeromelaban
jeromelaban merged commit a4512b3 into release/stable/6.0 May 22, 2025
@jeromelaban
jeromelaban deleted the mergify/bp/release/stable/6.0/pr-20443 branch May 22, 2025 13:24
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants