From 5bbd5ebb6690f4b7fb8265766649e91bcff6f2aa Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 21 Mar 2005 15:30:54 +0000 Subject: [PATCH] fixes to redraw and looping --- processing/core/PApplet.java | 11 ++++++++--- processing/core/todo.txt | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/processing/core/PApplet.java b/processing/core/PApplet.java index 982d63842..307487d3f 100644 --- a/processing/core/PApplet.java +++ b/processing/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/processing/core/todo.txt b/processing/core/todo.txt index 7ff605c9e..1f9293db3 100644 --- a/processing/core/todo.txt +++ b/processing/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