aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-10 12:19:32 +0000
committerMartin Kiewitz2010-07-10 12:19:32 +0000
commitf38348b82e3e6781ae2a166e951fc83f11f8d618 (patch)
tree37f0ec42b1aa398191ba6590976901bafb0b023c /engines/sci/graphics
parentcfc93a7e4dff46e1bca4656c2976c1f3c1e68a87 (diff)
downloadscummvm-rg350-f38348b82e3e6781ae2a166e951fc83f11f8d618.tar.gz
scummvm-rg350-f38348b82e3e6781ae2a166e951fc83f11f8d618.tar.bz2
scummvm-rg350-f38348b82e3e6781ae2a166e951fc83f11f8d618.zip
SCI: adding kPalette signatures, fixing 3 kPalVary calls, fixing kAssertPalette (we used the wrong parameter number before, maybe the issues were caused by this)
svn-id: r50780
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/palette.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index 9c64c21743..b85281e9c4 100644
--- a/engines/sci/graphics/palette.cpp
+++ b/engines/sci/graphics/palette.cpp
@@ -482,8 +482,9 @@ void GfxPalette::kernelAnimateSet() {
void GfxPalette::kernelAssertPalette(GuiResourceId resourceId) {
// Sometimes invalid viewIds are asked for, ignore those (e.g. qfg1vga)
- if (!_resMan->testResource(ResourceId(kResourceTypeView, resourceId)))
- return;
+ //if (!_resMan->testResource(ResourceId(kResourceTypeView, resourceId)))
+ // return;
+ // maybe we took the wrong parameter before, if this causes invalid view again, enable to commented out code again
GfxView *view = g_sci->_gfxCache->getView(resourceId);
Palette *viewPalette = view->getPalette();