mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
do not fire post() until after setup() (issue #455)
This commit is contained in:
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user