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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Feb 1 19:16:55 CET 2010


Revision: 47800
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47800&view=rev
Author:   thebluegr
Date:     2010-02-01 18:16:50 +0000 (Mon, 01 Feb 2010)

Log Message:
-----------
Fixed silly typos (priority is a byte in SCI32)

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

Modified: scummvm/trunk/engines/sci/graphics/gui32.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/gui32.cpp	2010-02-01 17:04:20 UTC (rev 47799)
+++ scummvm/trunk/engines/sci/graphics/gui32.cpp	2010-02-01 18:16:50 UTC (rev 47800)
@@ -231,7 +231,7 @@
 
 void SciGui32::addPlane(reg_t object) {
 	_planes.push_back(object);
-	byte planePri = GET_SEL32V(_s->_segMan, object, priority) & 0xF;
+	byte planePri = GET_SEL32V(_s->_segMan, object, priority) & 0xFF;
 	if (planePri > _highPlanePri)
 		_highPlanePri = planePri;
 }
@@ -251,7 +251,7 @@
 	_highPlanePri = 0;
 
 	for (uint32 planeNr = 0; planeNr < _planes.size(); planeNr++) {
-		byte planePri = GET_SEL32V(_s->_segMan, _planes[planeNr], priority) & 0xF;
+		byte planePri = GET_SEL32V(_s->_segMan, _planes[planeNr], priority) & 0xFF;
 		if (planePri > _highPlanePri)
 			_highPlanePri = planePri;
 	}


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