aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2006-03-24 18:10:41 +0000
committerEugene Sandulenko2006-03-24 18:10:41 +0000
commit7569f796ec0a0cee5b19440e9dfe4c35696c8e60 (patch)
treea3608212289a748bff0f79319da7d416cfc541db /gui/newgui.cpp
parentf433bdb566111af3d6570a5bff1e4c381f10e1d0 (diff)
downloadscummvm-rg350-7569f796ec0a0cee5b19440e9dfe4c35696c8e60.tar.gz
scummvm-rg350-7569f796ec0a0cee5b19440e9dfe4c35696c8e60.tar.bz2
scummvm-rg350-7569f796ec0a0cee5b19440e9dfe4c35696c8e60.zip
Fix crash in Options dialog in 320xY mode. Shadow was drawn off-screen
svn-id: r21438
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index f3ba58bab7..18a3c11784 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -70,14 +70,14 @@ GuiObject::GuiObject(Common::String name) : _firstWidget(0) {
error("Widget <%s> has x < 0", name.c_str());
if(_x >= g_system->getOverlayWidth())
error("Widget <%s> has x > %d", name.c_str(), g_system->getOverlayWidth());
- if(_x + _w >= g_system->getOverlayWidth())
- error("Widget <%s> has x + w > %d", name.c_str(), g_system->getOverlayWidth());
+ 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());
if(_y >= g_system->getOverlayWidth())
error("Widget <%s> has y > %d", name.c_str(), g_system->getOverlayHeight());
- if(_y + _h >= g_system->getOverlayWidth())
- error("Widget <%s> has y + h > %d", name.c_str(), g_system->getOverlayHeight());
+ if(_y + _h > g_system->getOverlayWidth())
+ error("Widget <%s> has y + h > %d (%d)", name.c_str(), g_system->getOverlayHeight(), _y + _h);
_name = name;
}