Bugfix to data position start in vga decoder, and made ega/vga decoder methods public visibility

svn-id: r30104
This commit is contained in:
Paul Gilbert 2007-12-31 13:37:14 +00:00
parent 08020444f6
commit 10686b04ab
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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 {