Skip to content

Remove the need for “Disable HiDPI Scaling” on Windows #342

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

Closed
processing-bot opened this issue Jan 14, 2022 · 5 comments
Closed

Remove the need for “Disable HiDPI Scaling” on Windows #342

processing-bot opened this issue Jan 14, 2022 · 5 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: benfry

As a temporary resolution for #226, 4.0 beta 3 includes an option in Preferences (on Windows) to disable HiDPI scaling. This makes the UI behave properly, but is a temporary workaround because it leaves things fuzzy and still requires users to find the option.

Unfortunately, detecting when it's necessary to select this option is extremely difficult, and it appears, cannot be done consistently. If this sticks around much longer, maybe we can add a dialog box that suggests using the option.

See also #231.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Based on further comments in #226, this seems to come down to the editor cursor position offset to the right with fractional Windows scaling. It's not a low- or high-res issue specifically, it's just that the metrics are a little funky when not using an even multiple like 200%.

Luckily, that's easier to detect, though JEditSyntax sure is killing us here. (But can't do a jump to RSyntaxArea without breaking all Modes from 3.x…)

It's also an issue with our custom components (EditorHeader and EditorFooter) which are stretched and pixelated when using strange fractions.

@processing-bot
Copy link
Collaborator Author

@processing-bot
Copy link
Collaborator Author

Created by: benfry

With the last three commits, I think we have the Windows scaling issue resolved for 4.0 beta 4.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

More fixes for this coming in beta 5 if anyone runs into trouble…

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant