diff options
-rw-r--r-- | spuencoder.c | 2 | ||||
-rw-r--r-- | spuencoder.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/spuencoder.c b/spuencoder.c index d6d20e5..fe6425f 100644 --- a/spuencoder.c +++ b/spuencoder.c @@ -71,6 +71,8 @@ void cSpuEncoder::encode(cBitmap *bmap, int top, int left) { // store internaly bitmap = bmap; + this->top = top; + this->left = left; // prepare datastructures memset(&spu, 0, sizeof(spu)); diff --git a/spuencoder.h b/spuencoder.h index c881dc6..3124157 100644 --- a/spuencoder.h +++ b/spuencoder.h @@ -46,6 +46,7 @@ public: private: cBitmap *bitmap; + int top, left; // start points of bitmap uint8_t spu[MAX_SPU_DATA]; uint8_t *p; // pointer to current spu data |