replace MACOSX constant with MACOS

This commit is contained in:
Ben Fry
2020-01-20 14:49:05 -05:00
parent 6979ece6f3
commit 1cbdd36ec7

View File

@@ -44,14 +44,14 @@ public class Platform {
static Map<Integer, String> platformNames = new HashMap<>();
static {
platformNames.put(PConstants.WINDOWS, "windows"); //$NON-NLS-1$
platformNames.put(PConstants.MACOSX, "macosx"); //$NON-NLS-1$
platformNames.put(PConstants.MACOS, "macosx"); //$NON-NLS-1$
platformNames.put(PConstants.LINUX, "linux"); //$NON-NLS-1$
}
static Map<String, Integer> platformIndices = new HashMap<>();
static {
platformIndices.put("windows", PConstants.WINDOWS); //$NON-NLS-1$
platformIndices.put("macosx", PConstants.MACOSX); //$NON-NLS-1$
platformIndices.put("macosx", PConstants.MACOS); //$NON-NLS-1$
platformIndices.put("linux", PConstants.LINUX); //$NON-NLS-1$
}
@@ -411,7 +411,7 @@ public class Platform {
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
static public float getSystemZoom() {
return inst.getSystemZoom();
}