diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-22 10:55:39 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-22 10:55:39 +0200 |
commit | e8d7171b960a1e373e57d96d99e5e17002640adc (patch) | |
tree | b6175f51f7219e38342a54f6cda53c6c2d33655d | |
parent | ab24c7ec507478f9993718f773edebaad101a315 (diff) | |
download | vdr-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.c | 2 | ||||
-rw-r--r-- | spuregion.c | 2 | ||||
-rw-r--r-- | spuregion.h | 2 |
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; |