mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JRE-489 -Dswing.bufferPerWindow is fractional scale unfriendly
(cherry picked from commit 5e183c397b)
This commit is contained in:
committed by
alexey.ushakov@jetbrains.com
parent
ef836d7ff0
commit
c28059f1b5
@@ -76,6 +76,12 @@ public abstract class SunGraphicsEnvironment extends GraphicsEnvironment
|
||||
("true".equals(AccessController.doPrivileged(
|
||||
new GetPropertyAction("sun.java2d.uiScale.enabled", "true"))) &&
|
||||
isWindows_8_1_orUpper());
|
||||
if (uiScaleEnabled && FontUtilities.isWindows) {
|
||||
AccessController.doPrivileged((PrivilegedAction<Object>) () -> {
|
||||
System.setProperty("swing.bufferPerWindow", "false"); // todo: until JRE-489 is fixed
|
||||
return null;
|
||||
});
|
||||
}
|
||||
debugScale = uiScaleEnabled ? getScaleFactor("sun.java2d.uiScale") : -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user