Skip to content

Commit 5266f30

Browse files
committed
Replaced surface methods with new core methods
1 parent eadc6c4 commit 5266f30

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Demos/Graphics/MultipleWindows/MultipleWindows.pde

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void setup() {
2121
childA.bckColor = color(227, 173, 37);
2222

2323
// Change location of parent window after creating child window.
24-
surface.setLocation(100, 0);
24+
windowMove(100, 0);
2525
}
2626

2727
void draw() {
@@ -35,7 +35,7 @@ void draw() {
3535
shape(pointer);
3636

3737
String txt = String.format("Window 1 %6.2fps", frameRate);
38-
surface.setTitle(txt);
38+
windowTitle(txt);
3939
}
4040

4141
public void keyPressed() {
@@ -70,8 +70,8 @@ class ChildApplet extends PApplet {
7070
}
7171

7272
void setup() {
73-
surface.setLocation(vx, vy);
74-
surface.setResizable(true);
73+
windowMove(vx, vy);
74+
windowResizable(true);
7575
}
7676

7777
void draw() {
@@ -83,6 +83,6 @@ class ChildApplet extends PApplet {
8383
shape(pointer);
8484

8585
String txt = String.format("Window %d %6.2fps", id, frameRate);
86-
surface.setTitle(txt);
86+
windowTitle(txt);
8787
}
8888
}

Demos/Graphics/TessUpdate/TessUpdate.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ void draw() {
6060
shape(group);
6161

6262
String txt = String.format("FPS: %6.2fps", frameRate);
63-
surface.setTitle(txt);
63+
windowTitle(txt);
6464
}

Demos/Tests/MultipleWindows/MultipleWindows.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void settings() {
1010
}
1111

1212
void setup() {
13-
surface.setTitle("Main sketch");
13+
windowTitle("Main sketch");
1414
arcball = new Arcball(this, 300);
1515
child = new ChildApplet();
1616
}
@@ -56,7 +56,7 @@ class ChildApplet extends PApplet {
5656
smooth();
5757
}
5858
public void setup() {
59-
surface.setTitle("Child sketch");
59+
windowTitle("Child sketch");
6060
arcball2 = new Arcball(this, 300);
6161
}
6262

Demos/Tests/ResizeTest/ResizeTest.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
void setup() {
22
size(400, 400, P3D);
3-
surface.setResizable(true);
3+
windowResizable(true);
44
}
55

66
void draw() {

0 commit comments

Comments
 (0)