[Scummvm-cvs-logs] SF.net SVN: scummvm:[40371] scummvm/trunk/gui/object.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Thu May 7 22:56:34 CEST 2009
Revision: 40371
http://scummvm.svn.sourceforge.net/scummvm/?rev=40371&view=rev
Author: sev
Date: 2009-05-07 20:56:33 +0000 (Thu, 07 May 2009)
Log Message:
-----------
More debug info in the error messages when GUI layout is wrong.
Modified Paths:
--------------
scummvm/trunk/gui/object.cpp
Modified: scummvm/trunk/gui/object.cpp
===================================================================
--- scummvm/trunk/gui/object.cpp 2009-05-07 12:24:42 UTC (rev 40370)
+++ scummvm/trunk/gui/object.cpp 2009-05-07 20:56:33 UTC (rev 40371)
@@ -50,15 +50,15 @@
}
if (_x < 0)
- error("Widget <%s> has x < 0: %d", _name.c_str(), _x);
+ error("Widget <%s> has x < 0 (%d)", _name.c_str(), _x);
if (_x >= g_system->getOverlayWidth())
- error("Widget <%s> has x > %d", _name.c_str(), g_system->getOverlayWidth());
+ error("Widget <%s> has x > %d (%d)", _name.c_str(), g_system->getOverlayWidth(), _x);
if (_x + _w > g_system->getOverlayWidth())
error("Widget <%s> has x + w > %d (%d)", _name.c_str(), g_system->getOverlayWidth(), _x + _w);
if (_y < 0)
- error("Widget <%s> has y < 0", _name.c_str());
+ error("Widget <%s> has y < 0 (%d)", _name.c_str(), _y);
if (_y >= g_system->getOverlayHeight())
- error("Widget <%s> has y > %d", _name.c_str(), g_system->getOverlayHeight());
+ error("Widget <%s> has y > %d (%d)", _name.c_str(), g_system->getOverlayHeight(), _y);
if (_y + _h > g_system->getOverlayHeight())
error("Widget <%s> has y + h > %d (%d)", _name.c_str(), g_system->getOverlayHeight(), _y + _h);
}
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