mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Change window size if it's passed in
This commit is contained in:
parent
84f032610f
commit
156b83c38e
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ class Window(PygletWindow):
|
|||
self.position = initial_position
|
||||
self.position = initial_position
|
||||
|
||||
if "size" in kwargs:
|
||||
self.size = kwargs["size"]
|
||||
|
||||
mglw.activate_context(window=self)
|
||||
self.timer = Timer()
|
||||
self.config = mglw.WindowConfig(ctx=self.ctx, wnd=self, timer=self.timer)
|
||||
|
|
Loading…
Add table
Reference in a new issue