diff options
author | Paul Gilbert | 2007-12-31 05:57:11 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-12-31 05:57:11 +0000 |
commit | ccc822fd1c6e0bc0dd3a04ba04c0fa521aeca7a7 (patch) | |
tree | fdc837657b805cfdb4e360c132589c13a3c62a45 /engines/lure/decode.h | |
parent | abd3f453592de6c8be59364801998a79f16f0729 (diff) | |
download | scummvm-rg350-ccc822fd1c6e0bc0dd3a04ba04c0fa521aeca7a7.tar.gz scummvm-rg350-ccc822fd1c6e0bc0dd3a04ba04c0fa521aeca7a7.tar.bz2 scummvm-rg350-ccc822fd1c6e0bc0dd3a04ba04c0fa521aeca7a7.zip |
Added support for decoding EGA screens
svn-id: r30096
Diffstat (limited to 'engines/lure/decode.h')
-rw-r--r-- | engines/lure/decode.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/lure/decode.h b/engines/lure/decode.h index 0f925ab3f0..b399cea2f5 100644 --- a/engines/lure/decode.h +++ b/engines/lure/decode.h @@ -34,7 +34,7 @@ namespace Lure { class PictureDecoder { private: - byte *dataIn; + MemoryBlock *dataIn; uint32 BP; uint32 dataPos, dataPos2; uint32 outputOffset; @@ -47,9 +47,11 @@ private: byte ESBX(bool incr = true); void decrCtr(); bool shlCarry(); - void swap(uint16 &v1, uint16 &v2); + + MemoryBlock *egaDecode(MemoryBlock *src, uint32 maxOutputSize); + MemoryBlock *vgaDecode(MemoryBlock *src, uint32 maxOutputSize); public: - MemoryBlock *decode(MemoryBlock *src, uint32 maxOutputSize = SCREEN_SIZE); + MemoryBlock *decode(MemoryBlock *src, uint32 maxOutputSize = SCREEN_SIZE + 1); }; class AnimationDecoder { |