mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
moving back off the EDT again...
This commit is contained in:
@@ -9874,20 +9874,20 @@ public class PApplet implements PConstants {
|
||||
// also suspecting that these "not showing up" bugs might be EDT issues.
|
||||
static public void runSketch(final String[] args,
|
||||
final PApplet constructedSketch) {
|
||||
EventQueue.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
runSketchEDT(args, constructedSketch);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Moving this to the EDT for 3.0a6 because that's the proper thing to do
|
||||
* when messing with AWT/Swing components. And boy, do we mess with 'em.
|
||||
*/
|
||||
static protected void runSketchEDT(final String[] args,
|
||||
final PApplet constructedSketch) {
|
||||
// EventQueue.invokeLater(new Runnable() {
|
||||
// public void run() {
|
||||
// runSketchEDT(args, constructedSketch);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// * Moving this to the EDT for 3.0a6 because that's the proper thing to do
|
||||
// * when messing with Swing components. But mostly we're AWT, so who knows.
|
||||
// */
|
||||
// static protected void runSketchEDT(final String[] args,
|
||||
// final PApplet constructedSketch) {
|
||||
// Supposed to help with flicker, but no effect on OS X.
|
||||
// TODO IIRC this helped on Windows, but need to double check.
|
||||
System.setProperty("sun.awt.noerasebackground", "true");
|
||||
|
||||
Reference in New Issue
Block a user