fixes to redraw and looping

This commit is contained in:
benfry
2005-03-21 15:30:54 +00:00
parent 906d3139e7
commit 5bbd5ebb66
2 changed files with 10 additions and 3 deletions

View File

@@ -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();
}
}
}

View File

@@ -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