@@ -127,10 +127,10 @@ cc.RectApplyAffineTransform = function (rect, anAffineTransform) {
127127 var bottomLeft = cc . PointApplyAffineTransform ( cc . p ( left , bottom ) , anAffineTransform ) ;
128128 var bottomRight = cc . PointApplyAffineTransform ( cc . p ( right , bottom ) , anAffineTransform ) ;
129129
130- var minX = Math . min ( Math . min ( topLeft . x , topRight . x ) , Math . min ( bottomLeft . x , bottomRight . x ) ) ;
131- var maxX = Math . max ( Math . max ( topLeft . x , topRight . x ) , Math . max ( bottomLeft . x , bottomRight . x ) ) ;
132- var minY = Math . min ( Math . min ( topLeft . y , topRight . y ) , Math . min ( bottomLeft . y , bottomRight . y ) ) ;
133- var maxY = Math . max ( Math . max ( topLeft . y , topRight . y ) , Math . max ( bottomLeft . y , bottomRight . y ) ) ;
130+ var minX = Math . min ( topLeft . x , topRight . x , bottomLeft . x , bottomRight . x ) ;
131+ var maxX = Math . max ( topLeft . x , topRight . x , bottomLeft . x , bottomRight . x ) ;
132+ var minY = Math . min ( topLeft . y , topRight . y , bottomLeft . y , bottomRight . y ) ;
133+ var maxY = Math . max ( topLeft . y , topRight . y , bottomLeft . y , bottomRight . y ) ;
134134
135135 return cc . rect ( minX , minY , ( maxX - minX ) , ( maxY - minY ) ) ;
136136} ;
0 commit comments