From b2f2a296be68c65773696568af696ee463411959 Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Tue, 21 Jan 2025 09:21:53 +0100 Subject: [PATCH] Issues 931 testing --- core/examples/src/main/java/Issue931.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 core/examples/src/main/java/Issue931.java diff --git a/core/examples/src/main/java/Issue931.java b/core/examples/src/main/java/Issue931.java new file mode 100644 index 000000000..7d1667b81 --- /dev/null +++ b/core/examples/src/main/java/Issue931.java @@ -0,0 +1,22 @@ +import processing.core.PApplet; + +// Reproduction of issue #931 +// Only seen on Windows +public class Issue931 extends PApplet { + public void draw(){ + background(frameCount % 256); + text("Hello World "+frameCount, 10, 10); + + frameRate(9999); + surface.setSize(frameCount + 100, 100); + } + public static void main(String[] passedArgs) { + String[] appletArgs = new String[]{ Issue931.class.getName()}; + if (passedArgs != null) { + PApplet.main(concat(appletArgs, passedArgs)); + } else { + PApplet.main(appletArgs); + } + + } +}