From 215c21babf6e7a9fc26bf55d1644e25d6271c5fd Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 30 Jan 2023 15:24:10 -0800 Subject: [PATCH] Small renaming --- manimlib/window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manimlib/window.py b/manimlib/window.py index 8cf2bd8a..7efbca96 100644 --- a/manimlib/window.py +++ b/manimlib/window.py @@ -79,13 +79,13 @@ class Window(PygletWindow): relative: bool = False ) -> np.ndarray: pixel_shape = np.array(self.size) - frame_shape = np.array(FRAME_SHAPE) + fixed_frame_shape = np.array(FRAME_SHAPE) frame = self.scene.frame coords = np.zeros(3) - coords[:2] = (frame_shape / pixel_shape) * np.array([px, py]) + coords[:2] = (fixed_frame_shape / pixel_shape) * np.array([px, py]) if not relative: - coords[:2] -= 0.5 * frame_shape + coords[:2] -= 0.5 * fixed_frame_shape return frame.from_fixed_frame_point(coords, relative) def on_mouse_motion(self, x: int, y: int, dx: int, dy: int) -> None: