summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spuencoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/spuencoder.c b/spuencoder.c
index a78424d..372207f 100644
--- a/spuencoder.c
+++ b/spuencoder.c
@@ -313,12 +313,12 @@ void cSpuEncoder::generateSpuData(bool topAndBottom) throw (char const* )
spu[written++] = bottomStart >> 8;
spu[written++] = bottomStart & 0xff;
- // write color-> palette index and alpha data for the first region
- writeColorAndAlpha(regions.front()->section(0), true);
-
// write informations for other regions
if (regions.size() > 1) {
writeRegionInformation();
+ } else {
+ // write color-> palette index and alpha data for the first region
+ writeColorAndAlpha(regions.front()->section(0), true);
}
// 0xff: end sequence