v0.6.0: removed more unneeded allocations
This commit is contained in:
parent
3baf1dc5e7
commit
6195a70ed7
|
@ -218,12 +218,12 @@ public class ItemSprite extends MovieClip {
|
||||||
emitter = null;
|
emitter = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private float[] shadowMatrix;
|
private float[] shadowMatrix = new float[16];
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void updateMatrix() {
|
protected void updateMatrix() {
|
||||||
super.updateMatrix();
|
super.updateMatrix();
|
||||||
shadowMatrix = Matrix.clone(matrix);
|
Matrix.copy(matrix, shadowMatrix);
|
||||||
Matrix.translate(shadowMatrix,
|
Matrix.translate(shadowMatrix,
|
||||||
(width() * (1f - shadowWidth)) / 2f,
|
(width() * (1f - shadowWidth)) / 2f,
|
||||||
(height() * (1f - shadowHeight)) + shadowOffset);
|
(height() * (1f - shadowHeight)) + shadowOffset);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user