diff options
author | Paul Gilbert | 2014-08-29 07:31:23 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-29 07:31:23 -0400 |
commit | 0ef365ab025cb77ab40e95e5e9139a5f86168fa6 (patch) | |
tree | 9dc7afe888d80df829dba4060cec59d7e8f5bc9e | |
parent | bbe7616a198b0220a038028337127fecfea842ca (diff) | |
download | scummvm-rg350-0ef365ab025cb77ab40e95e5e9139a5f86168fa6.tar.gz scummvm-rg350-0ef365ab025cb77ab40e95e5e9139a5f86168fa6.tar.bz2 scummvm-rg350-0ef365ab025cb77ab40e95e5e9139a5f86168fa6.zip |
ACCESS: Fix errors in loadScreen since resource refactoring
-rw-r--r-- | engines/access/files.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/access/files.cpp b/engines/access/files.cpp index 233d040745..4ab98a2060 100644 --- a/engines/access/files.cpp +++ b/engines/access/files.cpp @@ -137,6 +137,11 @@ void FileManager::loadScreen(Graphics::Surface *dest, int fileNum, int subfile) void FileManager::handleScreen(Graphics::Surface *dest, Resource *res) { _vm->_screen->loadPalette(res->_stream); + // The remainder of the file after the palette may be separately compressed, + // so call handleFile to handle it if it is + res->_size -= res->_stream->pos(); + handleFile(res); + if (dest != _vm->_screen) dest->w = _vm->_screen->w; |