[Scummvm-cvs-logs] SF.net SVN: scummvm:[38927] scummvm/trunk/engines/parallaction/debug.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Fri Feb 27 09:46:40 CET 2009


Revision: 38927
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38927&view=rev
Author:   peres001
Date:     2009-02-27 08:46:39 +0000 (Fri, 27 Feb 2009)

Log Message:
-----------
Improved debugger output.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/debug.cpp

Modified: scummvm/trunk/engines/parallaction/debug.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/debug.cpp	2009-02-27 05:58:08 UTC (rev 38926)
+++ scummvm/trunk/engines/parallaction/debug.cpp	2009-02-27 08:46:39 UTC (rev 38927)
@@ -188,19 +188,22 @@
 
 	const char *objType[] = { "DOOR", "GET", "ANIM" };
 
-	DebugPrintf("+--------------------+-----+-----+-----+-------+-----+--------+--------+\n"
-				"| name               |  x  |  y  |  z  | layer |  f  |  type  |  visi  |\n"
-				"+--------------------+-----+-----+-----+-------+-----+--------+--------+\n");
+	DebugPrintf("+--------------------+-----+-----+-----+-----+-----+-------+-----+--------+\n"
+				"| name               |  x  |  y  |  w  |  h  |  z  | layer |  f  |  type  |\n"
+				"+--------------------+-----+-----+-----+-----+-----+-------+-----+--------+\n");
 
 	GfxObjArray::iterator b = _vm->_gfx->_sceneObjects.begin();
 	GfxObjArray::iterator e = _vm->_gfx->_sceneObjects.end();
+	Common::Rect r;
 
 	for ( ; b != e; b++) {
 		GfxObj *obj = *b;
-		DebugPrintf("|%-20s|%5i|%5i|%5i|%7i|%5i|%8s|%8x|\n", obj->getName(), obj->x, obj->y, obj->z, obj->layer, obj->frame, objType[obj->type], obj->isVisible() );
+		obj->getRect(obj->frame, r);
+		DebugPrintf("|%-20s|%5i|%5i|%5i|%5i|%5i|%7i|%5i|%8s|\n", obj->getName(), r.left, r.top, r.width(), r.height(),
+			obj->z, obj->layer, obj->frame, objType[obj->type]);
 	}
 
-	DebugPrintf("+--------------------+-----+-----+-----+-------+-----+--------+--------+\n");
+	DebugPrintf("+--------------------+-----+-----+-----+-----+-----+-------+-----+--------+\n");
 
 	return true;
 }


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