From 10686b04ab1dfa86ca5cb8ed35d52fe18476cf0b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 31 Dec 2007 13:37:14 +0000 Subject: Bugfix to data position start in vga decoder, and made ega/vga decoder methods public visibility svn-id: r30104 --- engines/lure/decode.cpp | 2 +- engines/lure/decode.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/lure') 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 { -- cgit v1.2.3