fixup PImage defaults for subclasses (set to RGB).

This commit is contained in:
benfry
2004-09-21 01:28:12 +00:00
parent 0a2ea76e63
commit ba0fc444b9
4 changed files with 45 additions and 27 deletions

View File

@@ -1018,17 +1018,6 @@ public class PApplet extends Applet
// ------------------------------------------------------------
/**
* Explicitly exit the applet. Inserted as a call for static
* mode apps, but is generally necessary because apps no longer
* have draw/loop separation.
*/
public void exit() {
stop();
// TODO if not running as an applet, do a System.exit() here
}
/**
* Function for an applet/application to kill itself and
* display an error. Mostly this is here to be improved later.
@@ -1055,6 +1044,16 @@ public class PApplet extends Applet
}
/**
* Explicitly exit the applet. Inserted as a call for static
* mode apps, but is generally necessary because apps no longer
* have draw/loop separation.
*/
public void exit() {
stop();
// TODO if not running as an applet, do a System.exit() here
}
// ------------------------------------------------------------