summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-22 10:55:39 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-22 10:55:39 +0200
commite8d7171b960a1e373e57d96d99e5e17002640adc (patch)
treeb6175f51f7219e38342a54f6cda53c6c2d33655d
parentab24c7ec507478f9993718f773edebaad101a315 (diff)
downloadvdr-plugin-dxr3-e8d7171b960a1e373e57d96d99e5e17002640adc.tar.gz
vdr-plugin-dxr3-e8d7171b960a1e373e57d96d99e5e17002640adc.tar.bz2
change constr. of cSpuRegion to work with an startLine value
-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;