Change order of camera.reset_pixel_shape args

This commit is contained in:
Grant Sanderson 2020-02-11 19:53:15 -08:00
parent 19814ecf87
commit c7a99769ce
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ class SplitScreenCamera(OldMultiCamera):
half_width = self.get_pixel_width() / 2
for camera in [self.left_camera, self.right_camera]:
# TODO: Round up on one if width is odd
camera.reset_pixel_shape(camera.get_pixel_height(), half_width)
camera.reset_pixel_shape(half_width, camera.get_pixel_height())
OldMultiCamera.__init__(
self,

View file

@ -29,8 +29,8 @@ class MultiCamera(MovingCamera):
imfc.camera.frame.get_width(),
)
imfc.camera.reset_pixel_shape(
int(pixel_height * imfc.get_height() / self.get_frame_height()),
int(pixel_width * imfc.get_width() / self.get_frame_width()),
int(pixel_height * imfc.get_height() / self.get_frame_height()),
)
def reset(self):