mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Change the default display density
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user