mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
fixes to redraw and looping
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user