mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Swap buffers when resetting to default position
This commit is contained in:
parent
b1f0270316
commit
97789fff35
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class Window(PygletWindow):
|
|||
def to_default_position(self):
|
||||
self.size = self.default_size
|
||||
self.position = self.default_position
|
||||
self.swap_buffers()
|
||||
|
||||
def find_initial_position(self, size: tuple[int, int]) -> tuple[int, int]:
|
||||
custom_position = get_customization()["window_position"]
|
||||
|
|
Loading…
Add table
Reference in a new issue