diff options
author | Eugene Sandulenko | 2009-05-07 20:56:33 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-05-07 20:56:33 +0000 |
commit | bb03043b165578a1ddc0f813fe07fb5ce1c27794 (patch) | |
tree | 4436fe9b85c678bc16ea39c9bf8ba893b78a9fe1 | |
parent | 226f8860ca0b8e5666ac412e9489654118c1ffd2 (diff) | |
download | scummvm-rg350-bb03043b165578a1ddc0f813fe07fb5ce1c27794.tar.gz scummvm-rg350-bb03043b165578a1ddc0f813fe07fb5ce1c27794.tar.bz2 scummvm-rg350-bb03043b165578a1ddc0f813fe07fb5ce1c27794.zip |
More debug info in the error messages when GUI layout is wrong.
svn-id: r40371
-rw-r--r-- | gui/object.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/object.cpp b/gui/object.cpp index 233a5f07c6..19e21ea8eb 100644 --- a/gui/object.cpp +++ b/gui/object.cpp @@ -50,15 +50,15 @@ void GuiObject::reflowLayout() { } 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); } |