do not fire post() until after setup() (issue #455)

This commit is contained in:
benfry
2011-06-22 23:27:23 +00:00
parent 6016d539b6
commit 70cdefdc60
2 changed files with 9 additions and 5 deletions
+6 -2
View File
@@ -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();
}
}
}
+3 -3
View File
@@ -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()