diff --git a/core/PApplet.java b/core/PApplet.java index 982d63842..307487d3f 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -457,7 +457,8 @@ public class PApplet extends Applet public void draw() { - finished = true; // if no draw method, then... + // if no draw method, then shut things down + finished = true; } @@ -465,7 +466,9 @@ public class PApplet extends Applet if (!looping) { redraw = true; if (thread != null) { - //thread.interrupt(); // wake from sleep + // wake from sleep (necessary otherwise it'll be + // up to 10 seconds before update) + thread.interrupt(); } } } @@ -475,7 +478,9 @@ public class PApplet extends Applet if (!looping) { looping = true; if (thread != null) { - //thread.interrupt(); // wake from sleep + // wake from sleep (necessary otherwise it'll be + // up to 10 seconds before update) + thread.interrupt(); } } } diff --git a/core/todo.txt b/core/todo.txt index 7ff605c9e..1f9293db3 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -5,6 +5,8 @@ X lines also getting vertically smashed together X make a note of the change to font.width() X backwards rects and backwards ellipses weren't properly drawn X code now compensates for negative widths or swapped x1/x2 +X fix noLoop() not properly running +X also fix redraw() to include interrupt() again X made loadStrings() and openStream(File) static again _ fix other stuff that's supposed to be static