cocos2d/cocos2d-x — pull request #6976 by JochenHeizmann (2014-06-05 02:54:35+00:00)
Title: Behaviour of ParallaxNode is wrong

Behaviour of ParallaxNode is wrong when glFrameSize is not identical to DesignResolutionSize.

Don't know if this should be fixed using multiplying with a matrix - but at least at my tests it works with this fix. But would be great if someone who knows more about the internal rendering will have a look at this problem.

To test the problem:
- Create a cocos2d-x app
- In AppDelegate create a GLView with a different size to designResolution, for example:

[...]
glview = GLView::createWithRect("testApp", {0,0, 960, 512});
director->setOpenGLView(glview);
[...]
glview->setDesignResolutionSize(480, 512, ResolutionPolicy::FIXED_WIDTH);
[...]

- Then create some ParallaxNodes and add it to your scene and scroll it around in the update-method