mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
clarify error message for displayDensity()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user