File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,13 @@ public void run() {
99
99
}
100
100
101
101
private static void initGui () {
102
- initLookAndFeel ();
103
102
setJava2DEnvironmentVariables ();
103
+ initLookAndFeel ();
104
+ }
105
+
106
+ private static void setJava2DEnvironmentVariables () {
107
+ System .setProperty ("sun.java2d.opengl" , "True" );
108
+ System .setProperty ("sun.java2d.accthreshold" , "0" );
104
109
}
105
110
106
111
private static void initLookAndFeel () {
@@ -116,12 +121,7 @@ private static void initLookAndFeel() {
116
121
}
117
122
118
123
private static boolean isWindows () {
119
- return System .getProperty ("os.name" ).contains ("win" );
120
- }
121
-
122
- private static void setJava2DEnvironmentVariables () {
123
- System .setProperty ("sun.java2d.opengl" , "True" );
124
- System .setProperty ("sun.java2d.accthreshold" , "0" );
124
+ return System .getProperty ("os.name" ).toLowerCase ().contains ("win" );
125
125
}
126
126
127
127
@ CalledOnlyBy (AmidstThread .EDT )
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ protected List<String> getTextLines() {
45
45
"" ,
46
46
"Viewer:" ,
47
47
"Size: " + columns + "x" + rows + " [" + (columns * rows ) + "]" ,
48
- String .format ("2D Accelerated : %1$.1f%%" , accelerationCounter .getAcceleratedPercentage ())
48
+ String .format ("Acceleration : %1$.1f%%" , accelerationCounter .getAcceleratedPercentage ())
49
49
);
50
50
// @formatter:on
51
51
} else {
You can’t perform that action at this time.
0 commit comments