mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 19:05:34 +01:00
get full screen toggle working with export to application
This commit is contained in:
@@ -460,7 +460,11 @@ public class PdePreprocessor {
|
||||
if ((programType == STATIC) || (programType == ACTIVE)) {
|
||||
if (!PdePreprocessor.foundMain) {
|
||||
out.println(indent + "static public void main(String args[]) {");
|
||||
out.println(indent + indent + "PApplet.main(new String[] { \"" + className + "\" });");
|
||||
out.print(indent + indent + "PApplet.main(new String[] { ");
|
||||
if (Preferences.getBoolean("export.application.fullscreen")) {
|
||||
out.print("\"--present\", ");
|
||||
}
|
||||
out.println("\"" + className + "\" });");
|
||||
out.println(indent + "}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user