Skip to content

Commit efc6535

Browse files
authored
Merge pull request #727 from hx2A/main
set display density to avoid annoying Processing warning
2 parents 4df4b40 + 855dd05 commit efc6535

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

py5_jar/src/main/java/py5/core/Sketch.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ public void settings() {
174174
}
175175

176176
if (success) {
177+
if (displayDensity() != 1) {
178+
pixelDensity(displayDensity());
179+
}
180+
177181
if (py5RegisteredEvents.contains("settings")) {
178182
success = py5Bridge.run_method("settings");
179183
} else {

0 commit comments

Comments
 (0)