title: Cocos2d-x - CCDirector::sharedDirector()->getWinSize() returns totally wrong value on Win32
body: <p>I came into a trouble with cocos2d-x, which I may not be able to solve alone, therefore I'm asking for your help. I wanted to create my own CCScene with CCLayer -as part of my cocos2d-x learning. Everything is working fine, except the size of the scene. CCDirector::sharedDirector()->getWinSize() report totally messed up resolution, like <b>0 x 108134400</b>... and I don't know what I'm doing wrong.</p>
  
  <p>Here is my class</p>
  
  <pre><code>.h
  #pragma once
  #include "cocos2d.h"
  
  class zfGameScene : public cocos2d::CCLayer
  {
  public:
      static cocos2d::CCScene* scene();
      virtual bool init();
      CREATE_FUNC(zfGameScene);
  };
  </code></pre>
  
  <p>Aaaaand</p>
  
  <pre><code>.cpp
  #include "zfGameScene.h"
  #include "cocos2d.h"
  
  using namespace cocos2d;
  
  CCScene* zfGameScene::scene(){
  CCScene * scene = NULL;
      do 
      {
       scene = CCScene::create();
          CC_BREAK_IF(! scene);
  
          zfGameScene *layer = zfGameScene::create();
          CC_BREAK_IF(! layer);
  
          scene-&gt;addChild(layer);
      } while (0);
  
      return scene;
  }
  
  bool zfGameScene::init(){
      bool returnValue = false;
      while(!returnValue){
          CC_BREAK_IF(!CCLayer::init());
  
          // This one is for loading the scene :P
          CCSize winSize = CCDirector::sharedDirector()-&gt;getWinSize();
      CCLog("[zfGameScene] Initialising with %d x %d...", winSize.width, winSize.height);
  
          CCSprite *background = CCSprite::spriteWithFile("background.png", CCRect(0, 0, 2048, 1536));
          this-&gt;setScale(1);
          this-&gt;setPosition(ccp(0, 0));
          this-&gt;addChild(background);
  
          returnValue = true;
      }
  
      return returnValue;
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks in advance for your help.</p>