diff options
author | Johannes Schickel | 2008-09-02 13:16:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-09-02 13:16:51 +0000 |
commit | a9248bf327d7ce177eb3c02d661b945393c0fbb7 (patch) | |
tree | 4b812b841c872eeafdb2063b3cfe15c7453667f5 /gui | |
parent | d093a631333f34b1d61754388e43a5fcb6f40ea3 (diff) | |
download | scummvm-rg350-a9248bf327d7ce177eb3c02d661b945393c0fbb7.tar.gz scummvm-rg350-a9248bf327d7ce177eb3c02d661b945393c0fbb7.tar.bz2 scummvm-rg350-a9248bf327d7ce177eb3c02d661b945393c0fbb7.zip |
Fixed copy&paste error when checking y and h of a widget on layout change.
svn-id: r34278
Diffstat (limited to 'gui')
-rw-r--r-- | gui/newgui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index b892fe076a..c340c1e8fd 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -73,9 +73,9 @@ void GuiObject::reflowLayout() { 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); } } |