mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
dispose() fix from 0100 to make size() work again
This commit is contained in:
+3
-3
@@ -534,6 +534,9 @@ public class PApplet extends Applet
|
||||
if (thread == null) return;
|
||||
thread = null;
|
||||
|
||||
// call to shut down renderer, in case it needs it (pdf does)
|
||||
if (g != null) g.dispose();
|
||||
|
||||
disposeMethods.handle();
|
||||
}
|
||||
|
||||
@@ -1175,9 +1178,6 @@ public class PApplet extends Applet
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
// formerly in kjcapplet, now just checks to see
|
||||
// if someone wants to leech off errors
|
||||
|
||||
// note that this will not catch errors inside setup()
|
||||
// those are caught by the PdeRuntime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user