Little WSA loading fix.

svn-id: r26375
This commit is contained in:
Johannes Schickel 2007-04-03 14:26:12 +00:00
parent 8b63337ce0
commit e8b6baca74
2 changed files with 5 additions and 6 deletions

View File

@ -146,7 +146,7 @@ void WSAMovieV1::displayFrame(int frameNum) {
if (_flags & WF_OFFSCREEN_DECODE) {
Screen::decodeFrameDelta(dst, _deltaBuffer);
} else {
Screen::decodeFrameDeltaPage(dst, _deltaBuffer, _width, true);
Screen::decodeFrameDeltaPage(dst, _deltaBuffer, _width, (_flags & WF_XOR) == 0);
}
}
_currentFrame = 0;
@ -384,9 +384,8 @@ int WSAMovieV2::open(const char *filename, int unk1, uint8 *palBuf) {
}
}
if (flags & 2) {
_flags |= WF_MASKED_BLIT;
}
if (flags & 2)
_flags |= WF_XOR;
if (!(unk1 & 2)) {
_flags |= WF_OFFSCREEN_DECODE;

View File

@ -71,10 +71,10 @@ public:
virtual void displayFrame(int frameNum);
enum WSAFlags {
WF_MASKED_BLIT = 0x1,
WF_OFFSCREEN_DECODE = 0x10,
WF_NO_FIRST_FRAME = 0x40,
WF_HAS_PALETTE = 0x100
WF_HAS_PALETTE = 0x100,
WF_XOR = 0x200
};
protected: