From 7569f796ec0a0cee5b19440e9dfe4c35696c8e60 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 24 Mar 2006 18:10:41 +0000 Subject: Fix crash in Options dialog in 320xY mode. Shadow was drawn off-screen svn-id: r21438 --- gui/newgui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gui/newgui.cpp') 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; } -- cgit v1.2.3