aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2007-12-31 13:37:14 +0000
committerPaul Gilbert2007-12-31 13:37:14 +0000
commit10686b04ab1dfa86ca5cb8ed35d52fe18476cf0b (patch)
tree02e1a5722183cee549b1176acb08a72f54904c12 /engines/lure
parent08020444f68228f03f9dd36aea72fea4bdfe6338 (diff)
downloadscummvm-rg350-10686b04ab1dfa86ca5cb8ed35d52fe18476cf0b.tar.gz
scummvm-rg350-10686b04ab1dfa86ca5cb8ed35d52fe18476cf0b.tar.bz2
scummvm-rg350-10686b04ab1dfa86ca5cb8ed35d52fe18476cf0b.zip
Bugfix to data position start in vga decoder, and made ega/vga decoder methods public visibility
svn-id: r30104
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/decode.cpp2
-rw-r--r--engines/lure/decode.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/lure/decode.cpp b/engines/lure/decode.cpp
index 0142c2c876..dc8b3957bd 100644
--- a/engines/lure/decode.cpp
+++ b/engines/lure/decode.cpp
@@ -224,7 +224,7 @@ MemoryBlock *PictureDecoder::vgaDecode(MemoryBlock *src, uint32 maxOutputSize) {
// Set up initial states
dataIn = src;
outputOffset = 0;
- dataPos = READ_LE_UINT32(dataIn + 0x400);
+ dataPos = READ_LE_UINT32(dataIn->data() + 0x400);
dataPos2 = 0x404;
CH = ESBX();
diff --git a/engines/lure/decode.h b/engines/lure/decode.h
index b399cea2f5..cea8b4b28a 100644
--- a/engines/lure/decode.h
+++ b/engines/lure/decode.h
@@ -48,10 +48,10 @@ private:
void decrCtr();
bool shlCarry();
- MemoryBlock *egaDecode(MemoryBlock *src, uint32 maxOutputSize);
- MemoryBlock *vgaDecode(MemoryBlock *src, uint32 maxOutputSize);
public:
MemoryBlock *decode(MemoryBlock *src, uint32 maxOutputSize = SCREEN_SIZE + 1);
+ MemoryBlock *egaDecode(MemoryBlock *src, uint32 maxOutputSize);
+ MemoryBlock *vgaDecode(MemoryBlock *src, uint32 maxOutputSize);
};
class AnimationDecoder {