mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
properly set stage size
This commit is contained in:
@@ -141,14 +141,14 @@ public class PSurfaceFX implements PSurface {
|
||||
}
|
||||
}).start();
|
||||
|
||||
// wait for stage to be initialized on its own thread before continuing
|
||||
while (stage == null) {
|
||||
// wait for stage to be initialized before continuing
|
||||
try {
|
||||
System.out.println("waiting for launch");
|
||||
//System.out.println("waiting for launch");
|
||||
Thread.sleep(5);
|
||||
} catch (InterruptedException e) { }
|
||||
}
|
||||
//return frame;
|
||||
setSize(sketch.sketchWidth(), sketch.sketchHeight());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user