mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4568 from dabingnn/develop_transitionScene
fix transition scene progress timer
This commit is contained in:
commit
ea751f8f1f
|
@ -32,6 +32,7 @@ THE SOFTWARE.
|
|||
#include "CCLayer.h"
|
||||
#include "CCActionInstant.h"
|
||||
#include "CCActionProgressTimer.h"
|
||||
#include "CCNewRenderTexture.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
@ -71,7 +72,7 @@ void TransitionProgress::onEnter()
|
|||
Size size = Director::getInstance()->getWinSize();
|
||||
|
||||
// create the second render texture for outScene
|
||||
RenderTexture *texture = RenderTexture::create((int)size.width, (int)size.height);
|
||||
RenderTexture *texture = NewRenderTexture::create((int)size.width, (int)size.height);
|
||||
texture->getSprite()->setAnchorPoint(Point(0.5f,0.5f));
|
||||
texture->setPosition(Point(size.width/2, size.height/2));
|
||||
texture->setAnchorPoint(Point(0.5f,0.5f));
|
||||
|
|
Loading…
Reference in New Issue