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 (#2274)
Some checks are pending
docs / build up document and deploy (push) Waiting to run
Some checks are pending
docs / build up document and deploy (push) Waiting to run
This commit is contained in:
parent
33dbf04985
commit
3d9a0cd25e
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