8079067: New version string scheme - Java2D
Reviewed-by: serb, jgodinez, iris
This commit is contained in:
parent
b61e85156e
commit
722ec3f5ed
@ -126,7 +126,6 @@ public class WindowsFlags {
|
|||||||
private static boolean disableRegistry;
|
private static boolean disableRegistry;
|
||||||
private static boolean magPresent;
|
private static boolean magPresent;
|
||||||
private static boolean setHighDPIAware;
|
private static boolean setHighDPIAware;
|
||||||
private static String javaVersion;
|
|
||||||
// TODO: other flags, including nopixfmt
|
// TODO: other flags, including nopixfmt
|
||||||
|
|
||||||
static {
|
static {
|
||||||
@ -240,17 +239,6 @@ public class WindowsFlags {
|
|||||||
getBooleanProp("sun.java2d.checkRegistry", false);
|
getBooleanProp("sun.java2d.checkRegistry", false);
|
||||||
disableRegistry =
|
disableRegistry =
|
||||||
getBooleanProp("sun.java2d.disableRegistry", false);
|
getBooleanProp("sun.java2d.disableRegistry", false);
|
||||||
javaVersion = System.getProperty("java.version");
|
|
||||||
if (javaVersion == null) {
|
|
||||||
// Cannot be true, nonetheless...
|
|
||||||
javaVersion = "default";
|
|
||||||
} else {
|
|
||||||
int dashIndex = javaVersion.indexOf('-');
|
|
||||||
if (dashIndex >= 0) {
|
|
||||||
// an interim release; use only the part preceding the -
|
|
||||||
javaVersion = javaVersion.substring(0, dashIndex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String dpiOverride = System.getProperty("sun.java2d.dpiaware");
|
String dpiOverride = System.getProperty("sun.java2d.dpiaware");
|
||||||
if (dpiOverride != null) {
|
if (dpiOverride != null) {
|
||||||
setHighDPIAware = dpiOverride.equalsIgnoreCase("true");
|
setHighDPIAware = dpiOverride.equalsIgnoreCase("true");
|
||||||
|
Loading…
Reference in New Issue
Block a user