Skip to content
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

Account for display scaling factor when determining screen resolution #411

Open
BinToss opened this issue Jun 2, 2023 · 1 comment
Open
Assignees
Labels
enhancement New feature or request p:LOW Low Priority

Comments

@BinToss
Copy link
Member

BinToss commented Jun 2, 2023

This is currently being implemented on top of branch develop in new class HXE.Common.DpiUtilies. This class is copied from StackOverflow with little edits and is currently Windows-only. However, it has support for Windows 7 (SP1) and up, but recommends using Win10+ functions because they have better support for per-monitor DPI settings.

If COM marshalling is undesired, the class can be later refactored to utilize CsWin32.

Steal from https://stackoverflow.com/a/54912192

@BinToss
Copy link
Member Author

BinToss commented Oct 6, 2023

Work was started in the Avalonia port, but the Avalonia-based solution and the platform-specific fallbacks need testing.

@BinToss BinToss self-assigned this Jun 22, 2024
@BinToss BinToss added p:LOW Low Priority enhancement New feature or request labels Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p:LOW Low Priority
Projects
None yet
Development

No branches or pull requests

1 participant