aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index c8fd560691..819b6728f7 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -68,17 +68,17 @@ void GuiObject::handleScreenChanged() {
_w = g_gui.evaluator()->getVar(_name + ".w");
_h = g_gui.evaluator()->getVar(_name + ".h");
- if(_x < 0)
+ if (_x < 0)
error("Widget <%s> has x < 0", _name.c_str());
- if(_x >= g_system->getOverlayWidth())
+ if (_x >= g_system->getOverlayWidth())
error("Widget <%s> has x > %d", _name.c_str(), g_system->getOverlayWidth());
- if(_x + _w > 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)
+ if (_y < 0)
error("Widget <%s> has y < 0", _name.c_str());
- if(_y >= g_system->getOverlayWidth())
+ if (_y >= g_system->getOverlayWidth())
error("Widget <%s> has y > %d", _name.c_str(), g_system->getOverlayHeight());
- if(_y + _h > g_system->getOverlayWidth())
+ if (_y + _h > g_system->getOverlayWidth())
error("Widget <%s> has y + h > %d (%d)", _name.c_str(), g_system->getOverlayHeight(), _y + _h);
}
}