nicolasgramlich/AndEngine — Issue #48: Removed Color.WHITE_PACKED is not fixed in source code
Author: pykaso
Created: 2012-02-21 13:47:49+00:00
State: open

AndEngineTMXTiledMapExtension
org/andengine/extension/tmx/TMXLayer.java:
--------------------
this.drawWithoutChecks(tmxTileTextureRegion, tmxTile.getTileX(), tmxTile.getTileY(), tileWidth, tileHeight, Color.WHITE_PACKED);
==>
this.drawWithoutChecks(tmxTileTextureRegion, tmxTile.getTileX(), tmxTile.getTileY(), tileWidth, tileHeight, Color.WHITE_ABGR_PACKED_FLOAT);

AndEngineExamples
org/andengine/examples/HullAlgorithmExample.java
--------------------

private float[] mMeshVertices = new float[] {
0, 100, Color.WHITE_PACKED,
-100, -100, Color.WHITE_PACKED,
0, 0, Color.WHITE_PACKED,
100, -100, Color.WHITE_PACKED
};
===>
private float[] mMeshVertices = new float[] {
0, 100, Color.WHITE_ABGR_PACKED_FLOAT,
-100, -100, Color.WHITE_ABGR_PACKED_FLOAT,
0, 0, Color.WHITE_ABGR_PACKED_FLOAT,
100, -100, Color.WHITE_ABGR_PACKED_FLOAT
};

and

newMeshVertices[newMeshVertices.length - 1] = Color.WHITE_PACKED;
===>
newMeshVertices[newMeshVertices.length - 1] = Color.WHITE_ABGR_PACKED_FLOAT;