aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2006-03-09 01:08:25 +0000
committerEugene Sandulenko2006-03-09 01:08:25 +0000
commitc3f91ca288cd4cfb884fedb956d0d1049f857841 (patch)
tree974703ccff93ea4ebcb1eccb1f3867a218520ba0 /gui/newgui.cpp
parentf5efc8b1696400061a202db614ca02f8a4a8d391 (diff)
downloadscummvm-rg350-c3f91ca288cd4cfb884fedb956d0d1049f857841.tar.gz
scummvm-rg350-c3f91ca288cd4cfb884fedb956d0d1049f857841.tar.bz2
scummvm-rg350-c3f91ca288cd4cfb884fedb956d0d1049f857841.zip
Converted all scumm dialogs to new scheme
svn-id: r21147
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 808dea699d..67cffab6df 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -58,10 +58,13 @@ enum {
// HACK. FIXME. This doesn't belong here. But otherwise it creates compulation problems
GuiObject::GuiObject(Common::String name) : _firstWidget(0) {
- _x = g_gui.evaluator()->getVar(name + ".x");
- _y = g_gui.evaluator()->getVar(name + ".y");
+ if ((_x = g_gui.evaluator()->getVar(name + ".x")) == EVAL_UNDEF_VAR)
+ error("Undefined variable %s.x", name.c_str());
+ if ((_y = g_gui.evaluator()->getVar(name + ".y")) == EVAL_UNDEF_VAR)
+ error("Undefined variable %s.y", name.c_str());
_w = g_gui.evaluator()->getVar(name + ".w");
_h = g_gui.evaluator()->getVar(name + ".h");
+
_name = name;
}