summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spuencoder.c2
-rw-r--r--spuregion.c2
-rw-r--r--spuregion.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/spuencoder.c b/spuencoder.c
index 973e241..ed9e722 100644
--- a/spuencoder.c
+++ b/spuencoder.c
@@ -91,7 +91,7 @@ void cSpuEncoder::encode(cBitmap *bmap, int top, int left)
generateColorPalette();
// add one region
- cSpuRegion *reg = new cSpuRegion();
+ cSpuRegion *reg = new cSpuRegion(0);
for (int i = 0; i < numColors; i++) {
reg->addIndex(bitmap->Index(colors[i]));
diff --git a/spuregion.c b/spuregion.c
index 6ad9cca..f3a8906 100644
--- a/spuregion.c
+++ b/spuregion.c
@@ -26,7 +26,7 @@
#include "spuregion.h"
-cSpuRegion::cSpuRegion() : startLine(0), endLine(0), usedSections(0)
+cSpuRegion::cSpuRegion(uint16_t sLine) : startLine(sLine), endLine(0), usedSections(0)
{
memset(sections, 0, sizeof(sections));
}
diff --git a/spuregion.h b/spuregion.h
index b31d1cb..a66652f 100644
--- a/spuregion.h
+++ b/spuregion.h
@@ -42,7 +42,7 @@ struct sSection {
class cSpuRegion {
public:
- cSpuRegion();
+ cSpuRegion(uint16_t sLine);
uint16_t startLine;
uint16_t endLine;