diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-11 21:39:03 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-11 21:39:03 +0200 |
commit | 2674ee01561d08865a99e25420cd6798227eaf42 (patch) | |
tree | 79a9e6657704116776b5719010d47b0a67b1235f /spuencoder.c | |
parent | 414e76fd94edf6861977dc8a84d888d7236da732 (diff) | |
download | vdr-plugin-dxr3-2674ee01561d08865a99e25420cd6798227eaf42.tar.gz vdr-plugin-dxr3-2674ee01561d08865a99e25420cd6798227eaf42.tar.bz2 |
fix writting opacity values
Diffstat (limited to 'spuencoder.c')
-rw-r--r-- | spuencoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spuencoder.c b/spuencoder.c index 80ecc57..2fbce2a 100644 --- a/spuencoder.c +++ b/spuencoder.c @@ -153,8 +153,8 @@ void cSpuEncoder::writeColorAndAlpha(sSection &sec, bool withCMD) if (withCMD) { spu[written++] = CMD_SET_ALPHA; } - spu[written++] = (opacity[sec.colIndex[3]] << 4) | (opacity[sec.colIndex[2]] & 0x0f); - spu[written++] = (opacity[sec.colIndex[1]] << 4) | (opacity[sec.colIndex[0]] & 0x0f); + spu[written++] = (opacity[sec.colIndex[0]] << 4) | (opacity[sec.colIndex[1]] & 0x0f); + spu[written++] = (opacity[sec.colIndex[2]] << 4) | (opacity[sec.colIndex[3]] & 0x0f); } void cSpuEncoder::generateColorPalette() |