Skip to content

Commit 5ff5582

Browse files
authored
Fixed crashing issue where equalize was misspelled as equialise (#2857)
The camera2d_splitscreen.py in examples folder was crashing due to the misspelling of equalize() Changed the spelling equalise() -> equalize() #2856
1 parent a2aa102 commit 5ff5582

2 files changed

Lines changed: 1776 additions & 4 deletions

File tree

arcade/examples/camera2d_splitscreen.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ def setup_players_cameras(self):
228228
# Calling equalise will equalise/equalize the Camera's projection
229229
# to match the viewport. If we don't call equalise, proportions
230230
# of our sprites can appear off.
231-
player_one_camera.equalise()
232-
player_two_camera.equalise()
231+
player_one_camera.equalize()
232+
player_two_camera.equalize()
233233

234234
# Save a list of our cameras for later use
235235
self.cameras.append(player_one_camera)
@@ -310,8 +310,8 @@ def on_resize(self, width: float, height: float):
310310

311311
self.cameras[PLAYER_ONE].viewport = arcade.LBWH(0, 0, half_width, height)
312312
self.cameras[PLAYER_TWO].viewport = arcade.LBWH(half_width, 0, half_width, height)
313-
self.cameras[PLAYER_ONE].equalise()
314-
self.cameras[PLAYER_TWO].equalise()
313+
self.cameras[PLAYER_ONE].equalize()
314+
self.cameras[PLAYER_TWO].equalize()
315315

316316
# Our divider sprite location will need to be adjusted as
317317
# we used the screen's width and height to set it's location

0 commit comments

Comments
 (0)