Skip to content

Commit d2ea31a

Browse files
committed
Another batch of examples resizing fixes.
This thing is neverending story ...
1 parent 9b05a88 commit d2ea31a

36 files changed

+252
-54
lines changed

examples/canvas_geometry_cube.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100

101101
function onWindowResize() {
102102

103-
windowHalfX = window.innerWidth / 2,
104-
windowHalfY = window.innerHeight / 2,
103+
windowHalfX = window.innerWidth / 2;
104+
windowHalfY = window.innerHeight / 2;
105105

106106
camera.aspect = window.innerWidth / window.innerHeight;
107107
camera.updateProjectionMatrix();

examples/canvas_geometry_earth.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124

125125
function onWindowResize() {
126126

127-
windowHalfX = window.innerWidth / 2,
128-
windowHalfY = window.innerHeight / 2,
127+
windowHalfX = window.innerWidth / 2;
128+
windowHalfY = window.innerHeight / 2;
129129

130130
camera.aspect = window.innerWidth / window.innerHeight;
131131
camera.updateProjectionMatrix();

examples/canvas_geometry_hierarchy.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090

9191
function onWindowResize() {
9292

93-
windowHalfX = window.innerWidth / 2,
94-
windowHalfY = window.innerHeight / 2,
93+
windowHalfX = window.innerWidth / 2;
94+
windowHalfY = window.innerHeight / 2;
9595

9696
camera.aspect = window.innerWidth / window.innerHeight;
9797
camera.updateProjectionMatrix();

examples/canvas_geometry_terrain.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106

107107
function onWindowResize() {
108108

109-
windowHalfX = window.innerWidth / 2,
110-
windowHalfY = window.innerHeight / 2,
109+
windowHalfX = window.innerWidth / 2;
110+
windowHalfY = window.innerHeight / 2;
111111

112112
camera.aspect = window.innerWidth / window.innerHeight;
113113
camera.updateProjectionMatrix();

examples/canvas_geometry_text.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128

129129
function onWindowResize() {
130130

131-
windowHalfX = window.innerWidth / 2,
132-
windowHalfY = window.innerHeight / 2,
131+
windowHalfX = window.innerWidth / 2;
132+
windowHalfY = window.innerHeight / 2;
133133

134134
camera.aspect = window.innerWidth / window.innerHeight;
135135
camera.updateProjectionMatrix();

examples/canvas_lines.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106

107107
function onWindowResize() {
108108

109-
windowHalfX = window.innerWidth / 2,
110-
windowHalfY = window.innerHeight / 2,
109+
windowHalfX = window.innerWidth / 2;
110+
windowHalfY = window.innerHeight / 2;
111111

112112
camera.aspect = window.innerWidth / window.innerHeight;
113113
camera.updateProjectionMatrix();

examples/canvas_lines_sphere.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@
120120

121121
function onWindowResize() {
122122

123-
windowHalfX = window.innerWidth / 2,
124-
windowHalfY = window.innerHeight / 2,
123+
windowHalfX = window.innerWidth / 2;
124+
windowHalfY = window.innerHeight / 2;
125125

126126
camera.aspect = window.innerWidth / window.innerHeight;
127127
camera.updateProjectionMatrix();

examples/canvas_materials_video.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174

175175
function onWindowResize() {
176176

177-
windowHalfX = window.innerWidth / 2,
178-
windowHalfY = window.innerHeight / 2,
177+
windowHalfX = window.innerWidth / 2;
178+
windowHalfY = window.innerHeight / 2;
179179

180180
camera.aspect = window.innerWidth / window.innerHeight;
181181
camera.updateProjectionMatrix();

examples/canvas_particles_floor.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797

9898
function onWindowResize() {
9999

100-
windowHalfX = window.innerWidth / 2,
101-
windowHalfY = window.innerHeight / 2,
100+
windowHalfX = window.innerWidth / 2;
101+
windowHalfY = window.innerHeight / 2;
102102

103103
camera.aspect = window.innerWidth / window.innerHeight;
104104
camera.updateProjectionMatrix();

examples/canvas_particles_random.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090

9191
function onWindowResize() {
9292

93-
windowHalfX = window.innerWidth / 2,
94-
windowHalfY = window.innerHeight / 2,
93+
windowHalfX = window.innerWidth / 2;
94+
windowHalfY = window.innerHeight / 2;
9595

9696
camera.aspect = window.innerWidth / window.innerHeight;
9797
camera.updateProjectionMatrix();

0 commit comments

Comments
 (0)