clarify error message for displayDensity()

This commit is contained in:
Ben Fry
2020-01-20 07:58:09 -05:00
parent 04b8a75d50
commit 273bdb4c74
+2 -1
View File
@@ -1039,7 +1039,8 @@ public class PApplet implements PConstants {
return (int) Math.round(tx.getScaleX());
}
System.err.println("Display " + display + " does not exist, returning ");
System.err.println("Display " + display + " does not exist, " +
"returning 1 for displayDensity(" + display + ")");
return 1; // not the end of the world, so don't throw a RuntimeException
}