mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fixup PImage defaults for subclasses (set to RGB).
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
// ------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user