aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-07-10 18:53:40 +0000
committerFilippos Karapetis2009-07-10 18:53:40 +0000
commitdfe8ec9be0ede93de536a9bac26974751c7e534b (patch)
tree5cae2cf0618bdfe4f817063ca5e28c605476087f /engines
parent03ee1c9f2c7e0050368b2ed453957dc777696051 (diff)
downloadscummvm-rg350-dfe8ec9be0ede93de536a9bac26974751c7e534b.tar.gz
scummvm-rg350-dfe8ec9be0ede93de536a9bac26974751c7e534b.tar.bz2
scummvm-rg350-dfe8ec9be0ede93de536a9bac26974751c7e534b.zip
Applied patch #2819665 - "SCI: cell palette fix for QfG3/SQ5/etc."
svn-id: r42345
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/gfx/gfx_resmgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/gfx/gfx_resmgr.cpp b/engines/sci/gfx/gfx_resmgr.cpp
index 98c5c12a70..9e9a8d2d13 100644
--- a/engines/sci/gfx/gfx_resmgr.cpp
+++ b/engines/sci/gfx/gfx_resmgr.cpp
@@ -600,6 +600,8 @@ gfxr_view_t *GfxResManager::getView(int nr, int *loop, int *cel, int palette) {
}
if (!cel_data->data) {
+ if (!cel_data->palette)
+ cel_data->palette = view->palette->getref();
#ifdef CUSTOM_GRAPHICS_OPTIONS
gfx_get_res_config(_options, cel_data);
gfx_xlate_pixmap(cel_data, _driver->getMode(), _options->view_xlate_filter);