diff options
Diffstat (limited to 'spuencoder.c')
-rw-r--r-- | spuencoder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spuencoder.c b/spuencoder.c index a3b3395..d4f1e8a 100644 --- a/spuencoder.c +++ b/spuencoder.c @@ -161,14 +161,14 @@ void cSpuEncoder::writeColorAndAlpha(sSection *sec, bool withCMD) if (withCMD) { spu[written++] = CMD_SET_COLOR; } - spu[written++] = (sec->colIndex[0] << 4) | (sec->colIndex[1] & 0x0f); - spu[written++] = (sec->colIndex[2] << 4) | (sec->colIndex[3] & 0x0f); + spu[written++] = (sec->colIndex[3] << 4) | (sec->colIndex[2] & 0x0f); + spu[written++] = (sec->colIndex[1] << 4) | (sec->colIndex[0] & 0x0f); if (withCMD) { spu[written++] = CMD_SET_ALPHA; } - spu[written++] = (opacity[sec->colIndex[0]] << 4) | (opacity[sec->colIndex[1]] & 0x0f); - spu[written++] = (opacity[sec->colIndex[2]] << 4) | (opacity[sec->colIndex[3]] & 0x0f); + spu[written++] = (opacity[sec->colIndex[3]] << 4) | (opacity[sec->colIndex[2]] & 0x0f); + spu[written++] = (opacity[sec->colIndex[1]] << 4) | (opacity[sec->colIndex[0]] & 0x0f); } void cSpuEncoder::writeRegionInformation() |