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

[gui] Scaled main window size in Hi-DPI environment #1728

Closed
shatyuka opened this issue Nov 14, 2022 · 2 comments · Fixed by #1729
Closed

[gui] Scaled main window size in Hi-DPI environment #1728

shatyuka opened this issue Nov 14, 2022 · 2 comments · Fixed by #1729

Comments

@shatyuka
Copy link
Contributor

For 200% scaled monitor, jadx got scaled twice, for DisplayMode returns native resolution.

DisplayMode mode = gd.getDisplayMode();
int w = mode.getWidth();
int h = mode.getHeight();

Also, main window size got even bigger with multiple screens.

I'll make a PR later.

@skylot
Copy link
Owner

skylot commented Nov 14, 2022

@shatyuka thanks! I merged your PR.
Also, I hope that someone else can check and confirm this fix 🙂

@shatyuka
Copy link
Contributor Author

Delete registry key HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jadx\gui to reset settings for testing.

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 a pull request may close this issue.

2 participants