[Scummvm-cvs-logs] SF.net SVN: scummvm:[51164] scummvm/trunk/engines/sci/graphics/compare.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Thu Jul 22 22:38:29 CEST 2010


Revision: 51164
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51164&view=rev
Author:   mthreepwood
Date:     2010-07-22 20:38:28 +0000 (Thu, 22 Jul 2010)

Log Message:
-----------
SCI: Hopefully fix compilation when ENABLE_SCI32 is not defined

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/compare.cpp

Modified: scummvm/trunk/engines/sci/graphics/compare.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/compare.cpp	2010-07-22 20:34:09 UTC (rev 51163)
+++ scummvm/trunk/engines/sci/graphics/compare.cpp	2010-07-22 20:38:28 UTC (rev 51164)
@@ -132,6 +132,7 @@
 
 	view = _cache->getView(viewId);
 
+#ifdef ENABLE_SCI32
 	switch (getSciVersion()) {
 	case SCI_VERSION_2:
 		if (view->isSci2Hires())
@@ -143,9 +144,11 @@
 	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 @@
 	default:
 		break;
 	}
+#endif
 
 	if (lookupSelector(_segMan, objectReference, SELECTOR(nsTop), NULL, NULL) == kSelectorVariable) {
 		writeSelectorValue(_segMan, objectReference, SELECTOR(nsLeft), celRect.left);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list