get full screen toggle working with export to application

This commit is contained in:
benfry
2008-11-21 20:35:59 +00:00
parent 2eba3ec3cd
commit 373bd59dc9

View File

@@ -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 + "}");
}