| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c30503f commit 15941f4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,6 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | 25 | import processing.app.*; | |
| 26 | 26 | import processing.app.exec.StreamRedirectThread; | |
| 27 | + import processing.app.ui.Toolkit; | ||
| 27 | 28 | import processing.core.*; | |
| 28 | 29 | import processing.data.StringList; | |
| 29 | 30 | import processing.mode.java.JavaBuild; | |
@@ -466,6 +467,10 @@ protected StringList getSketchParams(boolean present, String[] args) { | |||
| 466 | 467 | // removed for 3.0a6 because it would break the args passed to sketches. | |
| 467 | 468 | params.append(PApplet.ARGS_SKETCH_FOLDER + "=" + build.getSketchPath()); | |
| 468 | 469 | ||
| 470 | + if (Toolkit.zoom(100) >= 200) { // Use 100 to bypass possible rounding in zoom() | ||
| 471 | + params.append(PApplet.ARGS_DENSITY + "=2"); | ||
| 472 | + } | ||
| 473 | + | ||
| 469 | 474 | params.append(build.getSketchClassName()); | |
| 470 | 475 | } | |
| 471 | 476 | // Add command-line arguments to be given to the sketch itself | |
| Back | FazBrowse Home | New Git URL |
0 commit comments