Allow width/height of window to be set independently in constructor.
Allow width/height of window to be set independently in constructor.


Index: window/__init__.py
===================================================================
--- window/__init__.py	(revision 679)
+++ window/__init__.py	(working copy)
@@ -799,7 +799,12 @@
         super(Window, self).__init__()

         factory = get_factory()
-        if width and height:
+        if width or height:
+            _width, _height = factory.get_size()
+            if not width:
+                width = _width
+            if not height:
+                height = _height
             factory.set_size(width, height)
         factory.set_fullscreen(fullscreen)
         factory.set_gl_attribute('doublebuffer', doublebuffer)

seeminglee/pyglet64,niklaskorz/pyglet,seeminglee/pyglet64,adamlwgriffiths/Pyglet,niklaskorz/pyglet,adamlwgriffiths/Pyglet,adamlwgriffiths/Pyglet,niklaskorz/pyglet,seeminglee/pyglet64,adamlwgriffiths/Pyglet,niklaskorz/pyglet