Merge pull request #1038 from Stefterv/default-display-density

Change the default display density
This commit is contained in:
Raphaël de Courville
2025-04-25 11:23:40 +02:00
committed by GitHub
+2
View File
@@ -10105,6 +10105,8 @@ public class PApplet implements PConstants {
sketch.present = present;
sketch.fullScreen = fullScreen;
sketch.pixelDensity = sketch.displayDensity();
// For 3.0.1, moved this above handleSettings() so that loadImage() can be
// used inside settings(). Sets a terrible precedent, but the alternative
// of not being able to size a sketch to an image is driving people loopy.