aboutsummaryrefslogtreecommitdiff
path: root/engines/access/files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/access/files.cpp')
-rw-r--r--engines/access/files.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/access/files.cpp b/engines/access/files.cpp
index 0705b5d227..dacceb7a09 100644
--- a/engines/access/files.cpp
+++ b/engines/access/files.cpp
@@ -144,7 +144,10 @@ void FileManager::loadScreen(Graphics::Surface *dest, int fileNum, int subfile)
}
void FileManager::handleScreen(Graphics::Surface *dest, Resource *res) {
- _vm->_screen->loadPalette(res->_stream);
+ _vm->_screen->loadRawPalette(res->_stream);
+ if (_setPaletteFlag)
+ _vm->_screen->setPalette();
+ _setPaletteFlag = true;
// The remainder of the file after the palette may be separately compressed,
// so call handleFile to handle it if it is