[Scummvm-cvs-logs] SF.net SVN: scummvm:[51104] scummvm/trunk/engines/sci/engine/kgraphics.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Wed Jul 21 22:22:25 CEST 2010


Revision: 51104
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51104&view=rev
Author:   m_kiewitz
Date:     2010-07-21 20:22:24 +0000 (Wed, 21 Jul 2010)

Log Message:
-----------
SCI: halfing kCelWide for sci2.1

fixes lsl6 inventory icon placement, ffs. see comments

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kgraphics.cpp

Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp	2010-07-21 20:13:24 UTC (rev 51103)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp	2010-07-21 20:22:24 UTC (rev 51104)
@@ -427,6 +427,11 @@
 
 	celWidth = g_sci->_gfxCache->kernelViewGetCelWidth(viewId, loopNo, celNo);
 
+	if (getSciVersion() == SCI_VERSION_2_1)
+		celWidth = celWidth / 2; // half the width returned here, fixes lsl6 action icon placements
+	// the scripts work low-res and add the returned value from here to the coordinate
+	// TODO: check, if this is actually right. I'm slightly confused by this, but even GK1CD has some idivs in this
+	//  code, so it seems plausible.
 	return make_reg(0, celWidth);
 }
 


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