Skip to content

Commit

Permalink
Merge pull request #3363 from pandamicro/develop
Browse files Browse the repository at this point in the history
Fix rendering issues
  • Loading branch information
pandamicro committed Aug 23, 2016
2 parents e715f65 + 32e88b0 commit c2c6ef8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/core/renderer/RendererCanvas.js
Expand Up @@ -418,7 +418,7 @@ cc.rendererCanvas = {
//ugly for armature
this.restore();
this.save();
this._context.transform(t.a, -t.b, -t.c, t.d, t.tx * scaleX, -(t.ty * scaleY));
this._context.transform(t.a * scaleX, -t.b * scaleY, -t.c * scaleX, t.d * scaleY, t.tx * scaleX, -(t.ty * scaleY));
} else {
this._context.setTransform(t.a * scaleX, -t.b * scaleY, -t.c * scaleX, t.d * scaleY, this._offsetX + t.tx * scaleX, this._realOffsetY - (t.ty * scaleY));
}
Expand Down
1 change: 1 addition & 0 deletions cocos2d/core/sprites/CCSprite.js
Expand Up @@ -293,6 +293,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
locRect.y = rect.y;
locRect.width = rect.width;
locRect.height = rect.height;
this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
},

/**
Expand Down
2 changes: 2 additions & 0 deletions extensions/gui/scrollview/CCScrollViewCanvasRenderCmd.js
Expand Up @@ -79,5 +79,7 @@
}
}
cc.renderer.pushRenderCommand(this.endCmd);

this._dirtyFlag = 0;
};
})();

0 comments on commit c2c6ef8

Please sign in to comment.