We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f48972 commit c67d5f3Copy full SHA for c67d5f3
cocos2d/tilemap/CCTMXLayerCanvasRenderCmd.js
@@ -50,7 +50,7 @@
50
this._cacheDirty = true;
51
};
52
53
- proto._renderingChildToCache = function (scaleX, scaleY) {
+ proto._renderingChildToCache = function () {
54
if (this._cacheDirty) {
55
var wrapper = this._cacheContext,
56
context = wrapper.getContext(), locCanvas = this._cacheCanvas;
@@ -65,7 +65,7 @@
65
if (locChildren[i]){
66
var selCmd = locChildren[i]._renderCmd;
67
if(selCmd){
68
- selCmd.rendering(wrapper, scaleX, scaleY);
+ selCmd.rendering(wrapper, 1, 1);
69
selCmd._cacheDirty = false;
70
}
71
@@ -82,7 +82,7 @@
82
return;
83
84
var node = this._node;
85
- this._renderingChildToCache(node._scaleX, node._scaleY);
+ this._renderingChildToCache();
86
var wrapper = ctx || cc._renderContext, context = wrapper.getContext();
87
wrapper.setGlobalAlpha(alpha);
88
0 commit comments