Skip to content

Commit 220061f

Browse files
committed
Add new preproc test resources related to #352.
1 parent 63b8aa5 commit 220061f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import processing.core.*;
2+
import processing.data.*;
3+
import processing.event.*;
4+
import processing.opengl.*;
5+
6+
import java.util.HashMap;
7+
import java.util.ArrayList;
8+
import java.io.File;
9+
import java.io.BufferedReader;
10+
import java.io.PrintWriter;
11+
import java.io.InputStream;
12+
import java.io.OutputStream;
13+
import java.io.IOException;
14+
15+
public class fullscreen extends PApplet {
16+
17+
public void setup() {
18+
/* size commented out by preprocessor */;
19+
20+
noLoop();
21+
}
22+
23+
public void settings() { fullScreen(FX2D, 2); }
24+
25+
static public void main(String[] passedArgs) {
26+
String[] appletArgs = new String[] { "fullscreen_arg" };
27+
if (passedArgs != null) {
28+
PApplet.main(concat(appletArgs, passedArgs));
29+
} else {
30+
PApplet.main(appletArgs);
31+
}
32+
}
33+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fullScreen(FX2D, 2);

0 commit comments

Comments
 (0)