summaryrefslogtreecommitdiff
path: root/src/guichan/basiccontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/basiccontainer.cpp')
-rw-r--r--src/guichan/basiccontainer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/guichan/basiccontainer.cpp b/src/guichan/basiccontainer.cpp
index f3f61b65a..fb69bb53a 100644
--- a/src/guichan/basiccontainer.cpp
+++ b/src/guichan/basiccontainer.cpp
@@ -257,6 +257,8 @@ namespace gcn
void BasicContainer::drawChildren(Graphics* graphics)
{
+ BLOCK_START("BasicContainer::drawChildren")
+
graphics->pushClipArea(getChildrenArea());
for (WidgetListConstIterator iter = mWidgets.begin();
@@ -274,26 +276,33 @@ namespace gcn
rec.width += 2 * (*iter)->getFrameSize();
rec.height += 2 * (*iter)->getFrameSize();
graphics->pushClipArea(rec);
+ BLOCK_START("BasicContainer::drawChildren 1")
(*iter)->drawFrame(graphics);
+ BLOCK_END("BasicContainer::drawChildren 1")
graphics->popClipArea();
}
graphics->pushClipArea((*iter)->getDimension());
+ BLOCK_START("BasicContainer::drawChildren 2")
(*iter)->draw(graphics);
+ BLOCK_END("BasicContainer::drawChildren 2")
graphics->popClipArea();
}
}
graphics->popClipArea();
+ BLOCK_END("BasicContainer::drawChildren")
}
void BasicContainer::logicChildren()
{
+ BLOCK_START("BasicContainer::logicChildren")
for (WidgetListConstIterator iter = mWidgets.begin();
iter != mWidgets.end(); ++ iter)
{
(*iter)->logic();
}
+ BLOCK_END("BasicContainer::logicChildren")
}
void BasicContainer::showWidgetPart(Widget* widget, Rectangle area)