mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-143854 IDEA ignores system DPI setting on Windows
(cherry picked from commit 6a77eaecdf82153b7adcb9797fa5827f9228c93e)
This commit is contained in:
@@ -79,6 +79,10 @@ public class JBUI {
|
||||
}
|
||||
|
||||
public static void setScaleFactor(float scale) {
|
||||
if (SystemProperties.has("hidpi") && !SystemProperties.is("hidpi")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (scale < 1.25f) scale = 1.0f;
|
||||
else if (scale < 1.5f) scale = 1.25f;
|
||||
else if (scale < 1.75f) scale = 1.5f;
|
||||
|
||||
Reference in New Issue
Block a user