[Scummvm-cvs-logs] SF.net SVN: scummvm:[34278] scummvm/trunk/gui/newgui.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Sep 2 15:16:52 CEST 2008
Revision: 34278
http://scummvm.svn.sourceforge.net/scummvm/?rev=34278&view=rev
Author: lordhoto
Date: 2008-09-02 13:16:51 +0000 (Tue, 02 Sep 2008)
Log Message:
-----------
Fixed copy&paste error when checking y and h of a widget on layout change.
Modified Paths:
--------------
scummvm/trunk/gui/newgui.cpp
Modified: scummvm/trunk/gui/newgui.cpp
===================================================================
--- scummvm/trunk/gui/newgui.cpp 2008-09-02 13:13:02 UTC (rev 34277)
+++ scummvm/trunk/gui/newgui.cpp 2008-09-02 13:16:51 UTC (rev 34278)
@@ -73,9 +73,9 @@
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());
- if (_y >= g_system->getOverlayWidth())
+ if (_y >= g_system->getOverlayHeight())
error("Widget <%s> has y > %d", _name.c_str(), g_system->getOverlayHeight());
- if (_y + _h > g_system->getOverlayWidth())
+ 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