LAB: Refactor the remaining functions in labfile.cpp

This commit is contained in:
Filippos Karapetis 2015-12-04 21:47:47 +02:00 committed by Willem Jan Palenstijn
parent eb0a52e7fb
commit 9ba30835a2
7 changed files with 41 additions and 108 deletions

View file

@ -414,6 +414,11 @@ void Anim::unDiff(byte *newBuf, byte *oldBuf, byte *diffData, uint16 bytesPerRow
unDIFFMemory(newBuf, diffData, 1, bufType + 1);
}
void Anim::readBlock(void *Buffer, uint32 Size, byte **File) {
memcpy(Buffer, *File, (size_t)Size);
(*File) += Size;
}
void Anim::diffNextFrame() {
if (_header == 65535) /* Already done. */
return;