mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 03:06:55 +08:00
[libgdx] fix packedColor's color format of TwoColorPolygonBatch. The packedColor is abgr8888, not rgba888. (#2295)
This commit is contained in:
parent
6f5b940d93
commit
bb6cf1194c
@ -165,7 +165,7 @@ public class TwoColorPolygonBatch implements PolygonBatch {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPackedColor (float packedColor) {
|
public void setPackedColor (float packedColor) {
|
||||||
Color.rgba8888ToColor(light, NumberUtils.floatToIntColor(packedColor));
|
Color.abgr8888ToColor(light, packedColor);
|
||||||
lightPacked = packedColor;
|
lightPacked = packedColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ public class TwoColorPolygonBatch implements PolygonBatch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setPackedDarkColor (float packedColor) {
|
public void setPackedDarkColor (float packedColor) {
|
||||||
Color.rgba8888ToColor(dark, NumberUtils.floatToIntColor(packedColor));
|
Color.abgr8888ToColor(dark, packedColor);
|
||||||
this.darkPacked = packedColor;
|
this.darkPacked = packedColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user