diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 5bf10f2bf..1cb71d26e 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1639,7 +1639,9 @@ public class PApplet extends Applet float instantaneousRate = (float) rate / 1000.0f; frameRate = (frameRate * 0.9f) + (instantaneousRate * 0.1f); - preMethods.handle(); + if (frameCount != 0) { + preMethods.handle(); + } // use dmouseX/Y as previous mouse pos, since this is the // last position the mouse was in during the previous draw. @@ -1681,7 +1683,9 @@ public class PApplet extends Applet // repaint(); // getToolkit().sync(); // force repaint now (proper method) - postMethods.handle(); + if (frameCount != 0) { + postMethods.handle(); + } } } diff --git a/core/todo.txt b/core/todo.txt index 6ea58aeb2..29d61e82d 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -69,6 +69,9 @@ X saveBytes() error when writing to existing file X http://code.google.com/p/processing/issues/detail?id=667 X destroy() in PApplet ultimately calls System.exit() X http://code.google.com/p/processing/issues/detail?id=698 +X post() is called after setup() (make decision) +X http://code.google.com/p/processing/issues/detail?id=455 +X decision: post() only gets called in draw, not setup.. document opengl applets X implement new applet-opengl.html based on the latest jogl @@ -490,9 +493,6 @@ _ inputFile() and outputFile() need a fix _ remove them from the code, write examples for these _ use callbacks instead _ need to decide if you specify the function name, or if it's specific -_ post() is called after setup() (make decision) -_ http://code.google.com/p/processing/issues/detail?id=455 -_ decision: post() only gets called in draw, not setup.. document _ PShape API to handle internal vertex stuff _ add deconstruct() method for paths _ toArray() and toVector()