From 9dcbff72596094e44bea0b59701830b59e92fad9 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 22 Jul 2010 20:38:28 +0000 Subject: SCI: Hopefully fix compilation when ENABLE_SCI32 is not defined svn-id: r51164 --- engines/sci/graphics/compare.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/sci/graphics') diff --git a/engines/sci/graphics/compare.cpp b/engines/sci/graphics/compare.cpp index c019687fc2..c67126bfba 100644 --- a/engines/sci/graphics/compare.cpp +++ b/engines/sci/graphics/compare.cpp @@ -132,6 +132,7 @@ void GfxCompare::kernelSetNowSeen(reg_t objectReference) { view = _cache->getView(viewId); +#ifdef ENABLE_SCI32 switch (getSciVersion()) { case SCI_VERSION_2: if (view->isSci2Hires()) @@ -143,9 +144,11 @@ void GfxCompare::kernelSetNowSeen(reg_t objectReference) { default: break; } +#endif view->getCelRect(loopNo, celNo, x, y, z, celRect); +#ifdef ENABLE_SCI32 switch (getSciVersion()) { case SCI_VERSION_2: if (view->isSci2Hires()) { @@ -162,6 +165,7 @@ void GfxCompare::kernelSetNowSeen(reg_t objectReference) { default: break; } +#endif if (lookupSelector(_segMan, objectReference, SELECTOR(nsTop), NULL, NULL) == kSelectorVariable) { writeSelectorValue(_segMan, objectReference, SELECTOR(nsLeft), celRect.left); -- cgit v1.2.3