mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Change order of camera.reset_pixel_shape args
This commit is contained in:
parent
19814ecf87
commit
c7a99769ce
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue