Skip to content

Commit a1de896

Browse files
committed
better naming, some notes
1 parent 60eb9e2 commit a1de896

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

app/src/processing/app/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ static public byte[] gzipEncode(byte[] what) throws IOException {
668668
}
669669

670670

671-
static public final boolean hasNonAsciiChars(String what) {
671+
static public final boolean containsNonASCII(String what) {
672672
for (char c : what.toCharArray()) {
673673
if (c < 32 || c > 127) return true;
674674
}

app/src/processing/app/platform/WindowsPlatform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public File getSettingsFolder() throws Exception {
285285
} catch (UnsatisfiedLinkError ule) {
286286
String path = new File("lib").getCanonicalPath();
287287

288-
String msg = Util.hasNonAsciiChars(path) ?
288+
String msg = Util.containsNonASCII(path) ?
289289
"Please move Processing to a location with only\n" +
290290
"ASCII characters in the path and try again.\n" +
291291
"https://github.com/processing/processing/issues/3543" :

app/src/processing/app/ui/Toolkit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ static private Font createFont(String filename, int size) throws IOException, Fo
991991
// This gets the JAVA_HOME for the *local* copy of the JRE installed with
992992
// Processing. If it's not using the local JRE, it may be because of this
993993
// launch4j bug: https://github.com/processing/processing/issues/3543
994-
if (Util.hasNonAsciiChars(Platform.getJavaHome().getAbsolutePath())) {
994+
if (Util.containsNonASCII(Platform.getJavaHome().getAbsolutePath())) {
995995
msg += "Trying moving Processing\n" +
996996
"to a location with only ASCII characters in the path.";
997997
} else {

core/todo.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ _ normalize error messages for missing files
5050
_ https://github.com/processing/processing/issues/4265
5151
_ https://github.com/processing/processing/pull/4268
5252

53-
54-
_ fix menu bar hiding in exported JavaFX apps
55-
_ just call it around setup time?
5653
_ should fullScreen() set width and height to displayWidth/Height
5754
_ or is that being set/unset used for any state info?
5855
_ when calling exit(), if sketch has halted w/ exception, force the quit
@@ -94,6 +91,8 @@ _ https://github.com/processing/processing/issues/3753
9491

9592

9693
javafx
94+
_ fix menu bar hiding in exported JavaFX apps
95+
_ just call it around setup time?
9796
_ make wiki about quirks
9897
_ starving the thread makes things really slow down
9998
_ keyPressed() is always uppercase, keyTyped() will be correct

0 commit comments

Comments
 (0)