mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Move resizing out of Window.focus, and into Window.init_for_scene
This commit is contained in:
parent
d2d7d89777
commit
85c38ff9fd
1 changed files with 2 additions and 3 deletions
|
@ -69,7 +69,8 @@ class Window(PygletWindow):
|
|||
mglw.activate_context(window=self, ctx=self.ctx)
|
||||
self.timer.start()
|
||||
|
||||
self.focus()
|
||||
# This line seems to resync the viewport
|
||||
self.on_resize(*self.size)
|
||||
|
||||
def get_monitor(self, index):
|
||||
try:
|
||||
|
@ -106,8 +107,6 @@ class Window(PygletWindow):
|
|||
"""
|
||||
self._window.set_visible(False)
|
||||
self._window.set_visible(True)
|
||||
# This line seems to resync the viewport
|
||||
self.on_resize(*self.size)
|
||||
|
||||
def to_default_position(self):
|
||||
self.position = self.default_position
|
||||
|
|
Loading…
Add table
Reference in a new issue