When starting the window with some size, for example width, height = 500, 
500
  width, height = 500, 500
  director.init(width,height,vsync=False,do_not_scale=True)

And then resizing the window when changing scene:

  class StartEditor(Layer):
    def __init__(self):
        super(StartEditor, self).__init__()

        director.window.set_size(1200, 900)

  director.replace(Scene(StartEditor()))

The window changes size as expected, but all Layers seems to think it's 
still the original width and height of the first scene, for example:


  print director.get_window_size()

Gives the original values:
  (500, 500)

I noticed it when I was going from a menu script into the StartEditor 
script. How can I fix this? I did not find anything useful in the test 
folder.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to