mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7190 from minggo/perf-improve
use reference instead
This commit is contained in:
commit
75245cb99e
|
@ -530,7 +530,7 @@ void Sprite::updateTransform(void)
|
||||||
// calculate the Quad based on the Affine Matrix
|
// calculate the Quad based on the Affine Matrix
|
||||||
//
|
//
|
||||||
|
|
||||||
Size size = _rect.size;
|
Size &size = _rect.size;
|
||||||
|
|
||||||
float x1 = _offsetPosition.x;
|
float x1 = _offsetPosition.x;
|
||||||
float y1 = _offsetPosition.y;
|
float y1 = _offsetPosition.y;
|
||||||
|
|
Loading…
Reference in New Issue