mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-09 10:59:37 +01:00
8270859: Post JEP 411 refactoring: client libs with maximum covering > 10K
Reviewed-by: serb
This commit is contained in:
@@ -59,21 +59,19 @@ import sun.security.action.GetPropertyAction;
|
||||
* @see GraphicsDevice
|
||||
* @see GraphicsConfiguration
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public abstract class SunGraphicsEnvironment extends GraphicsEnvironment
|
||||
implements DisplayChangedListener {
|
||||
|
||||
/** Establish the default font to be used by SG2D. */
|
||||
private final Font defaultFont = new Font(Font.DIALOG, Font.PLAIN, 12);
|
||||
|
||||
private static final boolean uiScaleEnabled;
|
||||
private static final double debugScale;
|
||||
@SuppressWarnings("removal")
|
||||
private static final boolean uiScaleEnabled
|
||||
= "true".equals(AccessController.doPrivileged(
|
||||
new GetPropertyAction("sun.java2d.uiScale.enabled", "true")));
|
||||
|
||||
static {
|
||||
uiScaleEnabled = "true".equals(AccessController.doPrivileged(
|
||||
new GetPropertyAction("sun.java2d.uiScale.enabled", "true")));
|
||||
debugScale = uiScaleEnabled ? getScaleFactor("sun.java2d.uiScale") : -1;
|
||||
}
|
||||
private static final double debugScale =
|
||||
uiScaleEnabled ? getScaleFactor("sun.java2d.uiScale") : -1;
|
||||
|
||||
protected GraphicsDevice[] screens;
|
||||
|
||||
@@ -299,6 +297,7 @@ public abstract class SunGraphicsEnvironment extends GraphicsEnvironment
|
||||
|
||||
public static double getScaleFactor(String propertyName) {
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
String scaleFactor = AccessController.doPrivileged(
|
||||
new GetPropertyAction(propertyName, "-1"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user